当前位置: 代码迷 >> 综合 >> 解决Navicat本地连接mysql数据库时报错误:2013-Lost connection to MYSQL server at 'reading for initial communicat
  详细解决方案

解决Navicat本地连接mysql数据库时报错误:2013-Lost connection to MYSQL server at 'reading for initial communicat

热度:92   发布时间:2023-12-17 23:56:26.0

在window系统下,用Navicat Premium本地连接MySQL数据库时,报了:

2013-Lost connection to MYSQL server at 'reading for initial communication packet',system error:0

百度了一下,提供了一种解决办法:
【解决办法】:打开my.ini,找到[mysqld]项,在其后加入一句:skip-name-resolve,保存,重启mysql服务即可~
my.in

[mysqld] skip-name-resolve

但还是报相同的错误

这时只需重启mysql的服务即可!
在这里插入图片描述

再次打开nvvicat 连接数据正常
在这里插入图片描述

  相关解决方案