See being given mysql binary log: mysqlbinlog: [ERROR] unknown variable 'default-character-set = utf8'

[xxx@dbhost log]$ mysqlbinlog mysql-bin.000004
mysqlbinlog: unknown variable 'default-character-set=utf8'

  The reason is that this tool can not recognize mysqlbinlog default-character-set binlog configuration = utf8 in this command.

      Two ways to solve this problem

First, in the MySQL configuration will /etc/my.cnf default-character-set = utf8 amended as character-set-server = utf8, but this need to restart the MySQL service, if your MySQL server is busy, and that this price It will be relatively large.

With two open mysqlbinlog --no-defaults mysql-bin.000004 command

Guess you like

Origin www.cnblogs.com/xingyunfashi/p/12162152.html