解决ERROR 2003 (HY000): Can't connect to MySQL server on "host" (111)

来源:互联网 发布:在奥地利生活 知乎 编辑:程序博客网 时间:2024/05/19 16:50
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  <---注释掉这一行就可以远程登录了