使用tab自动补全mysql命令,tab补全mysql
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 -u root -p --auto-rehash
会有提示,可以不理睬
切换到数据库
3.永久使用
编辑/etc/my.cnf注释[mysql]下的no-auto-rehash
新加auto-rehash
登出mysql命令行
登陆切换到数据库,然后调用tab键测试吧
注意:自动补全是客户端命令,必须切换到数据库下才能使用
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。