声明:数据库tab键补全的是表名,列名,数据库名,不是数据库中的命令,变量等
永久支持tab键补全
[root@localhost ~]# vim /etc/my.cnf
添加以下两行:
[mysql]
auto-rehash
[root@localhost ~]# systemctl restart mariadb
临时支持tab键补全
[root@localhost ~]# mysql -uroot -p123123 --auto-rehash
声明:数据库tab键补全的是表名,列名,数据库名,不是数据库中的命令,变量等
永久支持tab键补全
[root@localhost ~]# vim /etc/my.cnf
添加以下两行:
[mysql]
auto-rehash
[root@localhost ~]# systemctl restart mariadb
临时支持tab键补全
[root@localhost ~]# mysql -uroot -p123123 --auto-rehash