The command line when MySQL exits the current edit error

Source: Internet
Author: User

Many times in our use of the MySQL command line process, accidentally wrong some of the commands, the current command line is not out of the "current editing mode", such as

The correct command should be:

Show variables like '%char% ';

At this point, we can enter in the next row, in the new line

'(in English mode, single quote), then enter (Note: This line you can also enter " (in English mode, double quotation marks),)

Next, enter in the new line

\c (in English mode)

To exit the current editing mode, see the diagram

Look at a complete illustration,

These prompt meanings (see bottom recommendation)

Mysql> ready to accept the new order.

Wait for the next line of the multiline command.

' > waits for the next line, waiting for the end of the string to begin with single quotation marks ("'").

> waits for the next line, waiting for the end of the string to begin with double quotation marks ("" ").

' > waits for the next line, waiting for the end of the qualifier to begin with a backslash (' ').

/*> waits for the next line, waiting for the end of the comment to start with/*.

Reference:

http://bbs.csdn.net/topics/310230600 (2009-08-17-12:58:01)

http://www.anbob.com/archives/579.html (2011/04/01) Recommended

The command line when MySQL exits the current edit error

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.