如何在mysql数据库中开启使用tab键补全功能

声明:数据库tab键补全的是表名,列名,数据库名,不是数据库中的命令,变量等

永久支持tab键补全
[root@localhost ~]# vim /etc/my.cnf
添加以下两行:
[mysql]
auto-rehash
[root@localhost ~]# systemctl restart mariadb

临时支持tab键补全
[root@localhost ~]# mysql -uroot -p123123 --auto-rehash

 

posted @ 2019-10-11 11:11  有无  阅读(2190)  评论(0编辑  收藏  举报

博客记录了我学习linux过程中的一些问题及解决方法,内容可能仅适用于个人,如带来不便,望请见谅!