MySQL error address MySQL Binlog (exception)--mysqlbinlog:unknown variable ' Default-character-set=utf8 '

Source: Internet
Author: User


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 '

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.