MYSQL Command Line Connection database

Source: Internet
Author: User
Tags mysql command line

Today, the MySQL database is operated on a single test machine, and is connected via command line mode without the installation of a visualizer.

Through the command into the MySQL bin directory to connect after the prompt can not connect, after careful comparison found that the password is correct, after various attempts still can not login.

Check the program after found that the connection port is not 3306, while in the error message also mentioned can not connect localhost 3306, on the other hand, it is definitely a port problem.

After the query found that you need to add a port, the default access to the port is 3306, if not 3306 you need to force add-p (must be uppercase)

MYSQL Command Line Connection database

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.