ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061),mysql服务已启动(示例代码

Posted unionline

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061),mysql服务已启动(示例代码相关的知识,希望对你有一定的参考价值。

1 前言

mysql服务已启动,用命令行进入或者heidisql工具都提示ERROR 2003 (HY000): Can\'t connect to MySQL server on \'localhost\' (10061)。

或者提示以下图片@180618

 

 

2 解决方案

原来关闭了防火墙就好了,哎呀,这个坑,仅作为记录使用。原因是防火墙没有开3306端口

以上是关于ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061),mysql服务已启动(示例代码的主要内容,如果未能解决你的问题,请参考以下文章

ERROR 2003 (HY000): Can't connect to MySQL server on 'ip'(111)

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

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

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061),mysql服务已启动(示例代码

错误 2003 (HY000): 无法连接到 MySQL 服务器 (111)