方法一、修改my.cnf
vi /etc/my.cnf
[mysql]
auto-rehash #添加auto-rehash
注:修改 #no-auto-rehash 去掉# 改为上面那一条
重启mysql服务
在mysql启动时加参数auto-rehash
mysql –uroot -pmysql --auto-rehash
注:只能补齐表,列名
vi /etc/my.cnf
[mysql]
auto-rehash #添加auto-rehash
注:修改 #no-auto-rehash 去掉# 改为上面那一条
重启mysql服务
在mysql启动时加参数auto-rehash
mysql –uroot -pmysql --auto-rehash
注:只能补齐表,列名