1.使用mysql --help查看mysql的命令參数
注意
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
2.暂时使用
凝视[mysql]下的no-auto-rehash
新加auto-rehash
登出mysql命令行
注意
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
2.暂时使用
# mysql -u root -p --auto-rehash
会有提示。能够不理睬
切换到数据库
3.永久使用
编辑/etc/my.cnf凝视[mysql]下的no-auto-rehash
新加auto-rehash
登出mysql命令行
登陆切换到数据库,然后调用tab键測试吧
注意:自己主动补全是client命令,必须切换到数据库下才干使用