MHA配置报错 unknown variable ‘default-character-set=utf8‘
Posted 还行少年
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MHA配置报错 unknown variable ‘default-character-set=utf8‘相关的知识,希望对你有一定的参考价值。
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.
Tue Jul 20 15:26:10 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln208] Slaves settings check failed!
Tue Jul 20 15:26:10 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln416] Slave configuration failed.
Tue Jul 20 15:26:10 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations. at /usr/local/bin/masterha_check_repl line 48.
Tue Jul 20 15:26:10 2021 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Tue Jul 20 15:26:10 2021 - [info] Got exit code 1 (Not master dead).
MySQL Replication Health is NOT OK!
解决方案
[client]
port = 3306
#default-character-set=utf8 //将slave端的client的中文字符集注释
socket = /usr/local/mysql/mysql.sock
以上是关于MHA配置报错 unknown variable ‘default-character-set=utf8‘的主要内容,如果未能解决你的问题,请参考以下文章
jira安装报错 Unknown system variable 'default_storage_engine'
Hibernate卡住,然后报错java.sql.SQLException: Unknown system variable 'language'异常
解决MySQL8.0报错:Unknown system variable 'validate_password_policy'
解决MySQL8.0报错:Unknown system variable 'validate_password_policy'
解决 sqlalchemy 报错:(1193, "Unknown system variable 'tx_isolation'")
mysql报错:/usr/sbin/mysqld:unknown variable 'default-character-set=utf8'