SIllegal mix of collations (utf8_general_ci, IMPLICIT) and (utf8_unicode_ci, IMPLICIT) for operation & #39 ;=& #39; encountered a Character Set Problem ., Collations

Source: Internet
Author: User

SIllegal mix of collations (utf8_general_ci, IMPLICIT) and (utf8_unicode_ci, IMPLICIT) for operation '=' encountered Character Set problems ., Collations

Problems encountered in mysql5:

Illegal mix of collations (utf8_general_ci, IMPLICIT) and (utf8_unicode_ci, IMPLICIT) for operation '='

Encountered a character set problem.

----------------------------------

Currently, utf8_unicode_ci rules only support Unicode rules. Some characters are not supported. In addition, the combination of tags cannot be fully supported. This mainly affects some ethnic languages in Vietnam and Russia, such as Udmurt, Tatar, Bashkir, and Mari.

The main feature of utf8_unicode_ci is the support for expansion, that is, when a letter is considered equal to a combination of other letters. For example, in German and some other languages, 'taobao' is equal to 'ss '.

Utf8_general_ci is a legacy verification rule and does not support expansion. It can only compare characters one by one. This means that the utf8_general_ci verification rules are relatively fast, but they are more accurate than those using utf8_unicode_ci ).

For example, the comparison under the utf8_general_ci and utf8_unicode_ci verification rules is equal:

Ä=

Ö= O

U = U

The difference between the two verification rules is that the equation under utf8_general_ci is true:

Bytes = s

However, the equation for utf8_unicode_ci is true:

Token = ss

If utf8_unicode_ci sorting is poor for a language, the utf8 Character Set proofreading rules related to the specific language are executed. For example, utf8_unicode_ci works well in German and French, so you do not need to create special utf8 verification rules for these two languages.

Utf8_general_ci is also applicable to German and French, except for 'ss' rather than 'ss. If your application can accept this, you should use utf8_general_ci because it is fast. Otherwise, utf8_unicode_ci is used because it is accurate.

Bytes ----------------------------------------------------------------------------------------------------------------------

Solution:

You only need to modify the character set of the table as follows:

Alter table users convert to character set utf8 COLLATE utf8_general_ci;

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.