MySQL显示ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)解决方法

本文转自:

https://www.cnblogs.com/mqhpy/p/11443034.html

MySQL显示ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)解决方法

解决方法: 第一步cd进入mysql的bin目录下:

cd C:\Program Files\MySQL\MySQL Server 5.5\bin

输入:

mysqld --skip-grant-tables

再新开一个cmd,再进入bin目录:

cd C:\Program Files\MySQL\MySQL Server 5.5\bin

输入:

mysql -uroot

问题得解决:

 

posted @ 2019-09-16 19:54  keepsummer  阅读(6215)  评论(1编辑  收藏  举报