几天没用mysql后再用Navicat连接数据库时报了这个错误

我的MySQL版本是8.0.16

想重启一下数据库

net stop mysql

net start mysql

发现都是服务名无效

解决方法:

1.打开服务

Lost connection to MySQL server at 'reading initial communication packet', system error: 0

2.找到MySQL80

Lost connection to MySQL server at 'reading initial communication packet', system error: 0

3.停止然后再启动服务,就可以连接上数据库了。

 

相关文章: