MySQL Learning Note (2)-Two ways to modify the MySQL prompt

Source: Internet
Author: User

Study in http://www.imooc.com/video/1806 Network

1. Method One: cmd in the not logged in state, enter

Mysql-uroot-p own password--prompt new prompt

Example: mysql-uroot-p111111--prompt \h

111111 for your own password, \h refers to localhost

2. Method Two: When the cmd is in the login state, enter

Prompt new Prompt

Example:

3. The parameters that the prompt can use:

1) \d: Full Date

2) \d: Current Database

3) \h: Current host name

4) \u: Current User

Example: Entering

Prompt \[email protected]\h \d

None indicates that no database is open.

MySQL Learning Note (2)-Two ways to modify the MySQL prompt

Related Article

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.