解决ERROR 2003 (HY000): Can't connect to MySQL server on "host" (111)
| 分类: 应用开发 |
默认情况下Mysql只允许本地登录,所以需要修改配置文件将地址绑定给注释掉:
vim /etc/mysql/my.cnf
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address
= 127.0.0.1
<---注释掉这一行就可以远程登录了
http://s1/middle/60fcb5a1g9eb9428f6ae0&6902003(HY000): Can't connect to MySQL server on "host" (111)" TITLE="解决ERROR 2003 (HY000): Can't connect to MySQL server on "host" (111)" />
http://s7/middle/60fcb5a1g9eb94270f336&6902003(HY000): Can't connect to MySQL server on "host" (111)" TITLE="解决ERROR 2003 (HY000): Can't connect to MySQL server on "host" (111)" />
vim /etc/mysql/my.cnf
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address
http://s1/middle/60fcb5a1g9eb9428f6ae0&6902003
http://s7/middle/60fcb5a1g9eb94270f336&6902003
后一篇:Ubuntu下LAMP搭建

加载中…