Can t connect to MySQL server on localhost (10061)

Source: Internet
Author: User
Tags mysql tutorial

Can t connect to mysql tutorial server on localhost (10061)

Solution to mysql 10061 Error
If "error 2003: can't connect to mysql server on 'localhost' (10061)" appears, your mysql has not been started.
 
Solution: Start the mysql service in the service

 

Directly go to the binpoint mysqld.exeor mysqld-nt.exe to check whether the process can run normally. If not, go to the control panel and start it in the service to check what is wrong.
If not, delete mysql in the Add/delete operation and reinstall mysql. Generally, the problem can be solved. You can back up data before installation.


Some netizens use the following solution

Add c:/windows/my. ini
[Mysqld]
Basedir = f:/mysql
Datadir = f:/mysql/data

If none of the above methods works, try the following method:

Solution:

Step 1
Delete my. ini under c: windowns

Step 2
Open c: mysqlbinwinmysqladmin.exe and enter the user name and password.

Step 3: Input mysqld-nt-remove in dos to delete the service
Enter mysqld-nt-install


Step 4: Enter mysql startup successful

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.