如图所示:

数据库连接报错2013-lost connection to mysql server at ‘reading initial communication packet’ system error:0

连接数据库的时候报错,网上百度查了各种方法,改配置文件改设置之类的,最后实测发现最简单实用的就是……重启数据服务。。。

win系统为例,win+r运行 输入services.msc

数据库连接报错2013-lost connection to mysql server at ‘reading initial communication packet’ system error:0

打开服务,找到数据库服务,右键,重启服务等待完成即可

数据库连接报错2013-lost connection to mysql server at ‘reading initial communication packet’ system error:0

重启完,直接连接数据库,就连接成功了。

相关文章:

  • 2021-07-28
  • 2021-07-26
  • 2021-10-04
  • 2021-06-28
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2021-07-24
  • 2021-09-07
  • 2022-12-23
  • 2021-08-10
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案