MySQL unable to connect with remote server

后端 未结 7 1839
醉梦人生
醉梦人生 2021-02-07 15:00

We have a MySQL server in one of the remote Virtual Machine (Windows Server 2008). Till yesterday we were able to connect to the MySQL server, with the help of workbench install

相关标签:
7条回答
  • 2021-02-07 15:37

    For the first time you need to test and make sure your connection to mysql is not blocked by the firewall.

    To disable the firewall on each host in your cluster, perform the following steps on each host.

    1. Save the existing iptables rule set.

    iptables-save > /root/firewall.rules
    

    2. Disable iptables.

    For RHEL, CentOS, Oracle, and Debian:

    chkconfig iptables off
    

    and

    /etc/init.d/iptables stop
    

    For SLES:

    chkconfig SuSEfirewall2_setup off
    

    and

    rcSuSEfirewall2 stop
    

    For Ubuntu:

    service ufw stop
    

    https://www.cloudera.com/documentation/enterprise/5-7-x/topics/install_cdh_disable_iptables.html

    0 讨论(0)
提交回复
热议问题