MYSQL之mha检查复制报错

xiaoxiao2021-02-27  205

报错:

[root@localhost108 bin]# masterha_check_repl --conf=/etc/masterha_default.cnf

Wed Aug 30 05:04:48 2017 - [error][/usr/local/share/perl5/MHA/ServerManager.pm, ln492]  Server 192.168.0.107(192.168.0.107:3306) is dead, but must be alive! Check server settings. Wed Aug 30 05:04:48 2017 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations.  at /usr/local/share/perl5/MHA/MasterMonitor.pm line 399 Wed Aug 30 05:04:48 2017 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln523] Error happened on monitoring servers.

解决方法:

登录 192.168.0.107的MySQL。发现MySQL服务是正常,可是为什么会说 192.168.0.107:3306 IS DEAD,可能是防火墙等原因。

[root@localhost107 ~]# service iptables stop iptables: Setting chains to policy ACCEPT: filter          [  OK  ] iptables: Flushing firewall rules:                         [  OK  ] iptables: Unloading modules:                               [  OK  ]

关闭防火墙之后,一切正常了。

[root@localhost107 ~]# service iptables stop iptables: Setting chains to policy ACCEPT: filter          [  OK  ] iptables: Flushing firewall rules:                         [  OK  ] iptables: Unloading modules:                               [  OK  ]

转载请注明原文地址: https://www.6miu.com/read-10360.html

最新回复(0)