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.