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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM