Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)解决方法

先验证一下MySQL的服务是否开启,到计算机->管理->服务和应用程序->服务

Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)解决方法

如果服务已开启,就检查一下C:\WINDOWS\system32\drivers\etc目录下的hosts文件,

是否存在这一下Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)解决方法,不存在添加。

最后在mysql的配置文件my.ini中[mysqld]下添加bind-address = 127.0.0.1

Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)解决方法

最后别忘了重启一下mysql服务,应该就ok了。

我的这个问题就是这么解决的。

相关文章:

  • 2021-09-23
  • 2021-08-16
  • 2021-09-11
  • 2022-01-31
  • 2021-12-27
  • 2021-07-01
  • 2021-09-09
  • 2021-12-05
猜你喜欢
  • 2021-05-16
  • 2022-12-23
  • 2021-05-23
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案