Fri Jul 9 05:33:44 2021 - [info] Connecting to root@192.168.2.33(192.168.2.33:22)..
Can't exec "mysqlbinlog": No such file or directory at /usr/local/share/perl5/MHA/BinlogManager.pm line 106.
mysqlbinlog version command failed with rc 1:0, please verify PATH, LD_LIBRARY_PATH, and client options
at /usr/local/bin/apply_diff_relay_logs line 493.
Fri Jul 9 05:33:44 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln208] Slaves settings check failed!
Fri Jul 9 05:33:44 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln416] Slave configuration failed.
Fri Jul 9 05:33:44 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations. at /usr/local/bin/masterha_manager line 50.
Fri Jul 9 05:33:44 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Fri Jul 9 05:33:44 2021 - [info] Got exit code 1 (Not master dead).
解决方法
ln -s /usr/local/mysql/bin/mysqlbinlog /usr/bin/mysqlbinlog