mysql5.7 MHA测试主从同步配置失败(MySQL Replication Health is NOT OK!)
环境:Linux、maxscale+mysql一主两从+MHA
mha测试ssh免密登录配置成功状态
[root@mha mha]# masterha_check_repl --conf=/etc/mha/app1.cnf
Fri Aug 18 16:10:11 2023 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Fri Aug 18 16:10:11 2023 - [info] Reading application default configuration from /etc/mha/app1.cnf..
Fri Aug 18 16:10:11 2023 - [info] Reading server configuration from /etc/mha/app1.cnf..
Fri Aug 18 16:10:11 2023 - [info] MHA::MasterMonitor version 0.56.
Fri Aug 18 16:10:11 2023 - [error][/usr/local/share/perl5/MHA/ServerManager.pm, ln301] Got MySQL error when connecting 192.168.20.57(192.168.20.57:3306) :1045:Access denied for user 'myaqla'@'192.168.20.42' (using password: YES), but this is not a MySQL crash. Check MySQL server settings.
at /usr/local/share/perl5/MHA/ServerManager.pm line 297.
Fri Aug 18 16:10:11 2023 - [error][/usr/local/share/perl5/MHA/ServerManager.pm, ln301] Got MySQL error when connecting 192.168.20.59(192.168.20.59:3306) :1045:Access denied for user 'myaqla'@'192.168.20.42' (using password: YES), but this is not a MySQL crash. Check MySQL server settings.
at /usr/local/share/perl5/MHA/ServerManager.pm line 297.
Fri Aug 18 16:10:11 2023 - [error][/usr/local/share/perl5/MHA/ServerManager.pm, ln301] Got MySQL error when connecting 192.168.20.58(192.168.20.58:3306) :1045:Access denied for user 'myaqla'@'192.168.20.42' (using password: YES), but this is not a MySQL crash. Check MySQL server settings.
at /usr/local/share/perl5/MHA/ServerManager.pm line 297.
Fri Aug 18 16:10:12 2023 - [error][/usr/local/share/perl5/MHA/ServerManager.pm, ln309] Got fatal error, stopping operations
Fri Aug 18 16:10:12 2023 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations. at /usr/local/share/perl5/MHA/MasterMonitor.pm line 326.
Fri Aug 18 16:10:12 2023 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln523] Error happened on monitoring servers.
Fri Aug 18 16:10:12 2023 - [info] Got exit code 1 (Not master dead).
MySQL Replication Health is NOT OK!