Several ways MySQL connects to the server

Source: Internet
Author: User
Tags mysql connect
First, the MySQL connection local database, the user name "root", the password "123456": d:\>mysql-h localhost-u root-p123456    Note: "-P" and "123456" can not have space between two, MySQL Connect the data specified in the local database, the database name is "Db_test", the user name is "root", the password is "123456": D:\>mysql-h 127.0.0.1-u root-p123456-d db_test Third, MySQL connection local Database, the user name "root", the password is "123456", you can not enter the password, and then follow the prompts to enter the password: d:\>mysql-h localhost-u root-p Enter password: The     above hint appears Then enter the password and return. Iv. MySQL Connection remote Database (192.168.1.10), port "3306", username "root", password "123456" d:\>mysql-h 192.168.1.10-p 3306-u root-p123456    Note: This is the uppercase "P" indicating the port number.

  

Several ways MySQL connects to the server

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.