MHA常见报错以及解决方法
error 1 运行masterha_check_repl --conf=/etc/masterha/app1.cnf报错 Testing mysql connection and privileges..sh: mysql: command not found mysql command failed with rc 127:0! at /usr/bin/apply_diff_relay_logs line 375 解决方案:ln -s /usr/local/mysql/bin/mysql /usr/bin error 2 运行masterha_check_repl --conf=/etc/masterha/app1.cnf报错 Can't exec "mysqlbinlog": No such file or directory at /usr/local/perl5/MHA/BinlogManager.pm line 99. 解决方案:在node节点上执行 which mysqlbinlog,比如我的结果就是 [localhost~]$ which mysqlbinlog /usr/local/mysql/bin/mysqlbinlog ln -s /usr/local/mysql/bin/mysqlbinlog /usr/bin/mysqlbinlog error 3