如何在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

原文地址:https://www.cnblogs.com/lyqlyqlyq/p/11652949.html