mha_replication_check Can't exec "mysqlbinlog": No such file or directory

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/

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值