无法启用mha

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

上一篇:DBLinq (MySQL exactly) Linq To MySql


下一篇:实现:C#窗体中的文本框只能输入中文汉字,其他输入无效。问:正则表达式怎么用?