连接mysql 2003 Can't connect to Mysql on 'xxx'(10061)

  1. 备份
    cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
  2. 修改
    vim /etc/mysql/my.cnf
    在[mysqld]下修改为bind-address=0.0.0.0
    没有的话就直接加上
[mysqld]
bind-address = 0.0.0.0
  1. 重启
    service mysql restart
posted @ 2018-05-30 09:08  随便了888  阅读(910)  评论(0编辑  收藏  举报