Home  >  Article  >  Database  >  使用tab自动补全mysql命令

使用tab自动补全mysql命令

WBOY
WBOYOriginal
2016-06-07 16:13:201571browse

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键测试吧

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn