MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)

远程链接mysql异常:错误号码2013: Lost connection to MySQL server at ‘reading initial communication packet', system error: 0

原因:mysql-server默认的链接ip是127.0.0.1 我们需要修改

解决方法:vim /etc/mysql/my.cnf的bind-address = 127.0.0.1注释 重启mysql  /etc/init.d/mysql restart 链接成功

posted on 2016-12-06 11:03  阿兴的平凡世界  阅读(763)  评论(0)    收藏  举报

导航