Home > Database > Mysql Tutorial > body text

MYSQL:如何使用MYSQL命令行的自动补全功能_MySQL

WBOY
Release: 2016-06-01 13:37:34
Original
1171 people have browsed it

bitsCN.com


MYSQL:如何使用MYSQL命令行的自动补全功能

 

使用MYSQL -I命令,查看MYSQL命令的参数,其中对--auto-rehash参数的说明如下:

--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.

网上也找了一些资料,说是打开MYSQL的自动补全功能,类似于LINUX的TAB键补全功能。

但如下使用该参数后,输入SQL命令,中途按TAB健,并未出现自动补全的效果,不知道如何操作:

 

[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
Related labels:
how
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template