Operation of MySQL database by cmd command-line program under Windows

Source: Internet
Author: User

Note: If your MySQL is not installed under the C drive, use the command to go to the bin directory in the MySQL installation directory for subsequent operations.

Here's how: for example, you install on the D drive. First input D: Enter to enter the D drive, and then enter the CD d:\ your MySQL installation directory \ Bin enter into the MySQL bin directory, you can do the following.

Enter the MySQL database by entering mysql-h localhost-u root-p carriage return

"-H" indicates the server name, localhost is the local address; "-U" is the database user name, root is the MySQL default username (can be changed to the user set up); "-P" is the password, if the password is set, it can be directly entered after-p, for example, the password is 12345678. The complete command for (mysql-h localhost-u root-p12345678 Note:-P with password directly can not have spaces ) if the password is not set, enter password is displayed, the direct carriage return.

Operation of MySQL database by cmd command-line program under Windows

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.