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

Source: Internet
Author: User

Problem Description:

Using Navicat for MySQL cannot remotely connect to the local database, prompting can ' t connect to MySQL server on ' localhost ' (10038).

The MySQL service in the local service did not start and could not find the service.

Use cmd command line to open MySQL prompt Can ' t connect to MySQL server on ' localhost ' (10061)

After Baidu on the internet followed that a lot of programs also did not successfully solve the problem. Read a few more blogs, the next incredibly successful.

Specific steps

Open the cmd command line, enter the bin directory where MySQL is installed, enter Msqld.exe, and then press ENTER, without waiting, close cmd.

Open the cmd command line again, go to the MySQL bin directory again, enter Mysql.exe, and press ENTER. Wait for a few replies to start the MySQL service successfully

You can also successfully connect to the local database using Navicat for MySQL.

Sections such as

This method feels like it needs to be re-operated after each boot. This problem should be caused by disabling certain startup items. This problem occurs when I close all the startup items, because the computer prompts for an error and then restarts each time the software is opened. The later period still needs to be improved.

Because the study is not good enough, not familiar with this piece, the specific reasons I do not know, so successful, I hope the big guy can give an explanation, thank you. I also hope that this blog will provide some help to those who have encountered this kind of situation.

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

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.