MHA 无法启动:Connecting to [email protected](192.168.80.30:22).‘default-character-set=utf8‘

MHA启动之后查看状态会自动停止

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

Fri Apr 23 18:47:30 2021 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Fri Apr 23 18:47:30 2021 - [info] Reading application default configuration from /etc/masterha/app1.cnf..
Fri Apr 23 18:47:30 2021 - [info] Reading server configuration from /etc/masterha/app1.cnf..
Fri Apr 23 18:47:30 2021 - [info] MHA::MasterMonitor version 0.57.
Fri Apr 23 18:47:31 2021 - [info] GTID failover mode = 0
Fri Apr 23 18:47:31 2021 - [info] Dead Servers:
Fri Apr 23 18:47:31 2021 - [info] Alive Servers:
Fri Apr 23 18:47:31 2021 - [info]   192.168.80.40(192.168.80.40:3306)
Fri Apr 23 18:47:31 2021 - [info]   192.168.80.30(192.168.80.30:3306)
Fri Apr 23 18:47:31 2021 - [info]   192.168.80.50(192.168.80.50:3306)
Fri Apr 23 18:47:31 2021 - [info] Alive Slaves:
Fri Apr 23 18:47:31 2021 - [info]   192.168.80.30(192.168.80.30:3306)  Version=5.7.17-log (oldest major version between slaves) log-bin:enabled
Fri Apr 23 18:47:31 2021 - [info]     Replicating from 192.168.80.40(192.168.80.40:3306)
Fri Apr 23 18:47:31 2021 - [info]     Primary candidate for the new Master (candidate_master is set)
Fri Apr 23 18:47:31 2021 - [info]   192.168.80.50(192.168.80.50:3306)  Version=5.7.17-log (oldest major version between slaves) log-bin:enabled
Fri Apr 23 18:47:31 2021 - [info]     Replicating from 192.168.80.40(192.168.80.40:3306)
Fri Apr 23 18:47:31 2021 - [info] Current Alive Master: 192.168.80.40(192.168.80.40:3306)
Fri Apr 23 18:47:31 2021 - [info] Checking slave configurations..
Fri Apr 23 18:47:31 2021 - [warning]  relay_log_purge=0 is not set on slave 192.168.80.30(192.168.80.30:3306).
Fri Apr 23 18:47:31 2021 - [warning]  relay_log_purge=0 is not set on slave 192.168.80.50(192.168.80.50:3306).
Fri Apr 23 18:47:31 2021 - [info] Checking replication filtering settings..
Fri Apr 23 18:47:31 2021 - [info]  binlog_do_db= , binlog_ignore_db= 
Fri Apr 23 18:47:31 2021 - [info]  Replication filtering check ok.
Fri Apr 23 18:47:31 2021 - [info] GTID (with auto-pos) is not supported
Fri Apr 23 18:47:31 2021 - [info] Starting SSH connection tests..
Fri Apr 23 18:47:34 2021 - [info] All SSH connection tests passed successfully.
Fri Apr 23 18:47:34 2021 - [info] Checking MHA Node version..
Fri Apr 23 18:47:34 2021 - [info]  Version check ok.
Fri Apr 23 18:47:34 2021 - [info] Checking SSH publickey authentication settings on the current master..
Fri Apr 23 18:47:34 2021 - [info] HealthCheck: SSH to 192.168.80.40 is reachable.
Fri Apr 23 18:47:35 2021 - [info] Master MHA Node version is 0.57.
Fri Apr 23 18:47:35 2021 - [info] Checking recovery script configurations on 192.168.80.40(192.168.80.40:3306)..
Fri Apr 23 18:47:35 2021 - [info]   Executing command: save_binary_logs --command=test --start_pos=4 --binlog_dir=/usr/local/mysql/data --output_file=/tmp/save_binary_logs_test --manager_version=0.57 --start_file=master-bin.000001 
Fri Apr 23 18:47:35 2021 - [info]   Connecting to root@192.168.80.40(192.168.80.40:22).. 
  Creating /tmp if not exists..    ok.
  Checking output directory is accessible or not..
   ok.
  Binlog found at /usr/local/mysql/data, up to master-bin.000001
Fri Apr 23 18:47:35 2021 - [info] Binlog setting check done.
Fri Apr 23 18:47:35 2021 - [info] Checking SSH publickey authentication and checking recovery script configurations on all alive slave servers..
Fri Apr 23 18:47:35 2021 - [info]   Executing command : apply_diff_relay_logs --command=test --slave_user='mha' --slave_host=192.168.80.30 --slave_ip=192.168.80.30 --slave_port=3306 --workdir=/tmp --target_version=5.7.17-log --manager_version=0.57 --relay_log_info=/usr/local/mysql/data/relay-log.info  --relay_dir=/usr/local/mysql/data/  --slave_pass=xxx
Fri Apr 23 18:47:35 2021 - [info]   Connecting to root@192.168.80.30(192.168.80.30:22).. 
mysqlbinlog: [ERROR] unknown variable 'default-character-set=utf8'
mysqlbinlog version command failed with rc 7:0, please verify PATH, LD_LIBRARY_PATH, and client options
 at /usr/local/bin/apply_diff_relay_logs line 493.
Fri Apr 23 18:47:35 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln208] Slaves settings check failed!
Fri Apr 23 18:47:35 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln416] Slave configuration failed.
Fri Apr 23 18:47:35 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations.  at /usr/local/bin/masterha_manager line 50.
Fri Apr 23 18:47:35 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Fri Apr 23 18:47:35 2021 - [info] Got exit code 1 (Not master dead).

解决

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值