MySQL 8.0 部署MHA报错:There is no alive server. We can't do failover

在部署MySQL 8.0的MHA集群时遇到错误:'There is no alive server. We can't do failover'。问题源于使用了非默认的MySQL端口号。解决方案是在MHA配置文件'/etc/mha/mysql-mha.conf'中指定正确的端口号port=3308,修改后重新进行验证。
摘要由CSDN通过智能技术生成

环境:基于MySQL 8.0安装部署MHA集群

  • 在检查主从时报错:
[root@mysql-105 mha]# masterha_check_repl --conf=/etc/mha/mysql-mha.conf
Tue Feb  4 22:14:13 2020 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Tue Feb  4 22:14:13 2020 - [info] Reading application default configuration from /etc/mha/mysql-mha.conf..
Tue Feb  4 22:14:13 2020 - [info] Reading server configuration from /etc/mha/mysql-mha.conf..
Tue Feb  4 22:14:13 2020 - [info] MHA::MasterMonitor version 0.57.
Tue Feb  4 22:14:14 2020 - [error][/usr/share/perl5/vendor_perl/MHA/ServerManager.pm, ln188] There is no alive server. We can't do failover
Tue Feb  4 22:14:14 2020 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations.  at /usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm line 329.
Tue Feb  4 22:14:14 2020 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm,
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值