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 链接成功
浙公网安备 33010602011771号