Da'sBlog

mysql2013错误

mysql错误Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
mark
mark
默认绑定的是本地,所以把bind-address = 127.0.0.1注释掉就好了。
然后重启下服务器
/etc/init.d/mysql restart

MySQL Error (2013): Lost connection to MySQL server at waiting for initial communication packet

打开my.ini,找到[mysqld]项,在其后加入一句:skip-name-resolve,保存,重启mysql服务即可~

如果忘记密码
可以添加
skip-grant-tables
忽略权限验证

坚持原创技术分享,您的支持将鼓励我继续创作!