在使用 masterha_check_repl --global_conf=/etc/masterha/masterha_default.conf --conf=/etc/masterha/app1.conf 脚本检查过程中,出现如下报错:
 

Sun Mar 12 23:25:56 2017 - [error][/usr/share/perl5/vendor_perl/MHA/ServerManager.pm, ln301] Got MySQL error when connecting 192.168.56.27(192.168.56.27:3306) :1045:Access denied for user 'myha'@'node2' (using password: YES), but this is not a MySQL crash. Check MySQL server settings.

 
原因:账号授权原因。
 
解决办法:
检查用户表 select user,host ,password from mysql.user;
 
重新授权即可。

 

相关文章:

  • 2022-12-23
  • 2022-03-02
  • 2021-10-11
  • 2021-07-09
  • 2021-04-06
  • 2021-10-05
  • 2021-05-29
  • 2021-05-26
猜你喜欢
  • 2021-08-25
  • 2021-06-11
  • 2021-11-20
  • 2021-10-25
  • 2021-08-07
相关资源
相似解决方案