mysql自动补全功能(只能用于表/列 名)

关键字:mysql自动补全,auto-rehash

注:只能补齐表,列名,使用tab进行补全操作

一、修改my.cnf

vi /etc/my.cnf 
[mysql] 
auto-rehash         #添加auto-rehash
#重启mysql服务

二、客户端连接mysql时

在mysql启动时加参数auto-rehash 
mysql –uroot -pmysql --auto-rehash
原文地址:https://www.cnblogs.com/gered/p/10795843.html