当从远程连接Mysql 时出现以下错误信息:
Could not connect to the specified instance
MySQL Error Number 2003
Can't connect to MySQL server on XXXX (10060)
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
转载于:https://blog.51cto.com/xuchengji/368500