ubuntu 下无法远程连接Mysql处理

当从远程连接Mysql 时出现以下错误信息:
Could not connect to the specified instance 
MySQL Error Number 2003 
Can't connect to MySQL server on XXXX (10060)
解决方法如下:
原因是MySQL考虑到 安全因素,默认配置只让从本地登录
打开 /etc/mysql/my.cnf 文件,找到 bind-address = 127.0.0.1 修改为 bind-address = 0.0.0.0

猜你喜欢

转载自agileshell.iteye.com/blog/1928130