MySQL 命令自动补齐功能

2014-11-24 17:42:06 · 作者: · 浏览: 0

MySQL 命令自动补齐功能


方法一、
vi /etc/my.cnf
[mysql]
#no-auto-rehash
auto-rehash #添加auto-rehash
在重启一下mysql服务,补全命令按 TAB 建,效果如下
mysql> select co
code comment commentCount consumeAmount content country connect


方法二、
在mysql启动时加参数auto-rehash
mysqld_safe --user=mysql --auto-rehash &