mha检测mysql报错

[root@zy10 ~]# masterha_check_repl --conf=/etc/masterha/app1.cnf
Thu Jul 1 22:39:17 2021 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Thu Jul 1 22:39:17 2021 - [info] Reading application default configuration from /etc/masterha/app1.cnf..
Thu Jul 1 22:39:17 2021 - [info] Reading server configuration from /etc/masterha/app1.cnf..
Thu Jul 1 22:39:17 2021 - [info] MHA::MasterMonitor version 0.57.
Thu Jul 1 22:39:17 2021 - [error][/usr/share/perl5/vendor_perl/MHA/ServerManager.pm, ln301] Got MySQL error when connecting 192.168.1.60(192.168.1.60:3306) :1045:Access denied for user 'manager'@'zy10' (using password: YES), but this is not a MySQL crash. Check MySQL server settings.
at /usr/share/perl5/vendor_perl/MHA/ServerManager.pm line 297.
Thu Jul 1 22:39:17 2021 - [error][/usr/share/perl5/vendor_perl/MHA/ServerManager.pm, ln301] Got MySQL error when connecting 192.168.1.40(192.168.1.40:3306) :1045:Access denied for user 'manager'@'zy10' (using password: YES), but this is not a MySQL crash. Check MySQL server settings.
at /usr/share/perl5/vendor_perl/MHA/ServerManager.pm line 297.
Thu Jul 1 22:39:18 2021 - [error][/usr/share/perl5/vendor_perl/MHA/ServerManager.pm, ln309] Got fatal error, stopping operations
Thu Jul 1 22:39:18 2021 - [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.
Thu Jul 1 22:39:18 2021 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Thu Jul 1 22:39:18 2021 - [info] Got exit code 1 (Not master dead).

MySQL Replication Health is NOT OK!

https://blog.csdn.net/weixin_39844549/article/details/113388417 或许对你有帮助