修改/etc/mysql/my.cnf
vi /etc/my.cnf
[mysql]
auto-rehash #添加auto-rehash
登录mysql时:
mysql -u root -p –auto-rehash
然后进入mysql就可以tab自动补全了。
本文介绍如何通过修改MySQL配置文件实现Tab键自动补全功能,包括在my.cnf中添加auto-rehash选项以及登录MySQL时使用--auto-rehash参数。
vi /etc/my.cnf
[mysql]
auto-rehash #添加auto-rehash
mysql -u root -p –auto-rehash
然后进入mysql就可以tab自动补全了。

被折叠的 条评论
为什么被折叠?