search

Home  >  Q&A  >  body text

远程连接阿里云上的Mysql,连接不上!


除了分配权限之外,还有其他要配置的么?

黄舟黄舟2839 days ago725

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-17 15:08:47

    There may be two reasons. One is because of browser interception. You can use

    service iptables stop

    Solved, but this is more dangerous.

    Second, change 127.0.0.1 to localhost in the configuration. The configuration may be in bind-address

    /etc/mysql/my.cnf

    or

    /etc/mysql/mysql.conf.d/mysqld.cnf

    Find

    and change it to bind-address

    bind-address = 127.0.0.1

    If you cannot find the configuration, you can also use the

    command to search find

    find / -name mysqld.cnf
    
    find / -name my.cnf

    reply
    0
  • Cancelreply