MYSQL: how to use the MYSQL command line auto-completion function _ MySQL

Source: Internet
Author: User
Tags rehash
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.