mysqlbinlog: [ERROR] unknown variable ‘default-character-set=utf8mb4′(mysqlbinlog: [ERROR] unknown variable ‘default-character-set=utf8mb4’)

mysqlbinlog是二进制日志查看工具,其也会读取/etc/my.cnf中 [client] 段的配置,但是不识别编码 

解决方法

1) 将[client]中 default_character_set=utf8mb4注释

mysqlbinlog -d db1 /data/mysql/binlog.000002

[参考]

https://www.cnblogs.com/dissipate/p/14230822.html

————————

Mysqlbinlog is a binary log viewing tool that also reads / etc / my The configuration of [Client] segment in CNF, but the code is not recognized

resolvent

1) 将[client]中 default_character_set=utf8mb4注释

mysqlbinlog -d db1 /data/mysql/binlog.000002

[reference]

https://www.cnblogs.com/dissipate/p/14230822.html