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