首頁  >  文章  >  資料庫  >  使用tab自动补全mysql命令

使用tab自动补全mysql命令

WBOY
WBOY原創
2016-06-07 16:13:201571瀏覽

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 【本文来自鸿网互联 (

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
【本文来自鸿网互联 (http://www.68idc.cn)】 --disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
2.临时使用

# mysql -u root -p --auto-rehash

\

会有提示,可以不理睬

切换到数据库

数据库,然后调用tab键测试吧

注意:自动补全是客户端命令,必须切换到数据库下才能使用

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn