MYSQL: how to use the MYSQL command line to automatically complete full-featured bitsCN.com
MYSQL: how to use the MYSQL command line auto-completion function
Run the MYSQL-I command to view the MYSQL command parameters. the -- auto-rehash parameter is described as follows:
-- 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
-- Disable-auto-rehash.
I also found some information on the Internet, that is, to enable MYSQL's automatic complementing function, similar to the LINUX TAB key complementing function.
However, after using this parameter as follows, enter the SQL command and press TAB in the middle. no auto-completion effect is displayed and you do not know how to perform this operation:
[SQL]
C:/Users/qxl> mysql-u root -- auto-rehash
Welcome to the MySQL monitor. Commands end with; or/g.
Your MySQL connection id is 29
Server version: 5.1.28-rc-community MySQL Community Server (GPL)
Type 'help; 'or'/h' for help. type'/C' to clear the buffer.
Mysql> use test
Database changed
Mysql> select * from newnam
BitsCN.com