此类错误的原因为:mysql服务没有启动。

解决方法:1.找到服务

ERROR 2003: Can't connect to MySQL server on 'localhost'  的错误

 

2.服务中找到mysql,右键单击 点击启动即可。

ERROR 2003: Can't connect to MySQL server on 'localhost'  的错误

 

备注:也可以在cmd中使用 命令行。

1.开启服务

net start mysql57(服务名)

2.进入mysql

mysql -hlocalhost -uroot -p 回车
 

 

相关文章:

  • 2021-08-15
  • 2021-06-12
  • 2021-11-03
  • 2021-04-27
  • 2021-08-03
猜你喜欢
  • 2022-01-26
  • 2021-09-16
  • 2021-04-22
  • 2021-06-03
  • 2022-01-31
  • 2021-08-29
  • 2021-11-17
相关资源
相似解决方案