Unknown variable ' Character_set_client=utf8 ' error occurred while logging in to MySQL

Source: Internet
Author: User

Today, when logging into the database server, the following error occurred:

1 [[email protected] app]# mysql-uroot-p2'Character-set-client=utf8 '

Check the next my.cnf configuration file, is in the client section under the configuration of such an option, according to the truth, there will be no problem ah, then the internet Google Down, found:

Understand that this is a bug in Mysqlbinlog. Since client-side encoding is allowed through the Character_set_client option in the Client option group, why does the tool that comes with mysqlbinlog not recognize this option?

Even if you do not know here, it does not have to go directly to the error and quit running, if you do not know this option only to skip this option (you can give a notice hint that you do not know this option is better) continue to run better?

But one problem is that I have no problem using Character-set-server = UTF8 under the mysqld section.

Therefore, my solution is: to comment the above Character_set_client=utf8, and then restart, so that when logging in, only the client side of the encoding is not UTF8, so we are in the

With set global Character_set_client=utf8, the entire database is encoded in UTF8.

1 Server characterset:    UTF82Db     characterset:    UTF83Client CharacterSet:    UTF84 Conn.  CharacterSet:    UTF8

Unknown variable ' Character_set_client=utf8 ' error occurred while logging in to MySQL

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.