MySQL command line login, remote login mysql

Source: Internet
Author: User
Tags mysql commands mysql command line mysql gui

Note:

MySQL GUI management tool "Navicat 10.1.8 Chinese Green Edition"

: http://www.t00y.com/file/18393836

Alternate Address: http://ProCircle.qjwm.com/down_7326838.html

-----------------------------------------------------------------------------------------------

Although the GUI program can be used to manage MySQL, but some of the features are not available in the graphical user interface program,

Sometimes we have to use commands to fulfill our needs, so we understand some common MySQL commands

is very useful.

-----------------------------------------------------------------------------------------------

1.MySQL self-bringing tool storage path:

D:\Program files\mysql\mysql Server 5.6\bin //Please be flexible

For ease of use, we can add the above path to the system's environment variable path

If you do not, you may not be able to open the corresponding program in CMD.

As follows:

-----------------------------------------------------------------------------------------------

2. Log in to MySQL locally

Command: Mysql-u root-p//root is the user name, enter this command hit ENTER after the system will prompt you to enter the password

Then you enter the correct password and click the Enter key to log in to the MySQL database.

! as follows




--------------------------------------------------------------------------------------------------------------- --------------

3. Specify the port number to log in to the MySQL database

To change the above command: Mysql-u root-p to Mysql-u root-p-P 3306, note that the letter p for the specified port is uppercase,

The P that identifies the password is lowercase. MySQL default port number is 3306

! As follows



--------------------------------------------------------------------------------------------------------------- --------------

4. Specify the IP address and port number to log in to the MySQL database

The command format is: mysql-h ip-u root-p-P 3306 For example: Mysql-h 127.0.0.1-u root-p-P 3306

! As follows


MySQL command line login, remote login mysql

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.