Can't exec "mysqlbinlog": No such file or directory at /usr/share/perl5/vendor_perl/MHA/BinlogManager.pm line 106.
mysqlbinlog version command failed with rc 1:0, please verify PATH, LD_LIBRARY_PATH, and client options
at /usr/bin/apply_diff_relay_logs line 493.
Thu Jan 19 09:59:30 2017 - [error][/usr/lib/perl5/vendor_perl/MHA/MasterMonitor.pm, ln412] Slaves settings check failed!
Thu Jan 19 09:59:30 2017 - [error][/usr/lib/perl5/vendor_perl/MHA/MasterMonitor.pm, ln275] Slave configuration failed.
Thu Jan 19 09:59:30 2017 - [error][/usr/lib/perl5/vendor_perl/MHA/MasterMonitor.pm, ln520] Error happened on checking configurations. at /usr/bin/masterha_check_repl line 48
Thu Jan 19 09:59:30 2017 - [error][/usr/lib/perl5/vendor_perl/MHA/MasterMonitor.pm, ln691] Error happened on monitoring servers.
Thu Jan 19 09:59:30 2017 - [info] Got exit code 1 (Not master dead).
MySQL Replication Health is NOT OK!
修改root 环境变量没有效果后,软链接强制调用命令:
[root@YRZ-TR-DBM2 ~]# ln -s /home/mysql/mysql/bin/mysqlbinlog /usr/local/bin/mysqlbinlog
Thu Jan 19 09:59:57 2017 - [info] Checking replication health on 10.50.28.96..
Thu Jan 19 09:59:57 2017 - [info] ok.
Thu Jan 19 09:59:57 2017 - [info] Checking replication health on 10.50.28.97..
Thu Jan 19 09:59:57 2017 - [info] ok.
Thu Jan 19 09:59:57 2017 - [info] Checking replication health on 10.50.28.65..
Thu Jan 19 09:59:57 2017 - [info] ok.
Thu Jan 19 09:59:57 2017 - [info] Checking replication health on 10.50.28.66..
Thu Jan 19 09:59:57 2017 - [info] ok.
Thu Jan 19 09:59:57 2017 - [warning] master_ip_failover_script is not defined.
Thu Jan 19 09:59:57 2017 - [warning] shutdown_script is not defined.
Thu Jan 19 09:59:57 2017 - [info] Got exit code 0 (Not master dead).
MySQL Replication Health is OK.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29291882/viewspace-2132665/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29291882/viewspace-2132665/