Can & #39; t connect to mysql server on localhost & lt; 10061 & gt;, localhost10061

Source: Internet
Author: User

Can't connect to mysql server on localhost <10061>, localhost10061

You need to start the MySQL service. You can start MySQL in two ways:

1. command line.

Win + R, Enter cmd and press Enter. In the command line window, enter:

Net start mysql56

Mysql56 is the mysql version installed.


2. Graphics

Right-click your computer on the desktop, choose manage> services and applications> services,

Find mysql56, right-click to start. You can also double-click mysql56 to enable mysql56 automatically.



Can't connect to MySQL server on localhost (10061)

1. Check whether the mysql service is enabled: Open the task manager and check whether the mysqld process exists.
2. Check the firewall. telnet 10.9.20.55 3306.

Can't connect to MySQL server on 'localhost' (10061)

10061 error indicates that the network connection fails. Your MYSQL service is definitely not started.

Use net start to check whether the MYSQL service exists or the port is not 3306.

You enter the BIN directory of MYSQL and manually run MYSQLD. EXE. Check the cause of MYSQL Service Startup failure. If it is not reflected after running, it means that the MYSQL service is started now and your program will not report the 10061 error.

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.