mysql 设置自动补全

linux下亲测可用,网上帖子说Windows下有bug

两个方法:

一:

在mysql的配置文件中添加

#如果里面已经有 no-auto-rehash需要在其前添加一个#注释掉
[mysql]
auto-rehash

我自己的ubantu的配置文件中,没有[mysql]这个头,只添加auto-rehash 是不管用的,并且无法打开mysql,提示program abort

二:

打开mysql的时候可以追加参数
例如 :

mysql -h localhost -u root --auto-rehash

just have a try~

猜你喜欢

转载自blog.csdn.net/qq_27854685/article/details/76898938