Sometime we will meet the problem of  can not connect to MySQL server on 'localhost' (10061),how to solve this problem?

The possible reasons for this problem.

1, MySQL service does not start, generally due to in exceptional circumstances MySQL can not start , for example, no available disk space, my.ini basedir path settings error in the MySQL, etc.

2, MySQL server resource constraints, leading to not connect.

The solutions: Read more