When using Mysqlbinlog to analyze logs, error:
/usr/local/mysql/bin/mysqlbinlog:unknown variable ' Default-character-set=utf8 '
Cause Analysis:
The reason for this problem is that I added it in the Client option group in MY.CNF: Default-character-set=utf8 This is a bug in Mysqlbinlog.
Workaround:
When you use the Mysqlbinlog tool to view the binary log, the MySQL profile my.cnf is reread instead of the configuration file that the server has loaded into memory. As long as you modify and save the My.cnf file, you do not need to restart the MySQL server. So here's how to do this: screen out the DEFAULT-CHARACTER-SET=UTF8 option in the client option group, such as #default-character-set=utf8 and then run the Mysqlbinlog tool, It will not cause any problems. Of course remember to revert the #default-character-set=utf8 option to Default-character-set=utf8 when not using the Mysqlbinlog tool;
This article from the "Do not ask for the best, only better" blog, please be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1729127
MySQL error address MySQL Binlog (exception)--mysqlbinlog:unknown variable ' Default-character-set=utf8 '