MySQL Learning Note (1)-cmd login and exit

Source: Internet
Author: User

1. Open cmd, input, enter

Mysql-uroot-p-p3306-h127. 0.0. 1


1)-U: Specifies the user name, Root is the super-privileged user.

2)-P: Enter the password, enter the password when not specified, and hide it with the * number.

3)-P: port number, MySQL default port number is 3306, the port number is not changed, this item can not be written.

4)-H: Server name, mysql default server IP address is 127.0.0.1, do not write as default.

Enter the password to log in after entering the carriage.

2. Exit, three ways to
1 Exit 2 quit  mysql > \q

MySQL Learning Note (1)-cmd login and exit

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.