I have never, ever seen this before. I don’t even know how the table was created with a different collation. However, I had all my other tables created with the character set utf8, no collation specified.

I had to convert the second table to match the character set. This probably wouldn’t have been a problem if I wasn’t joining on a character field.

alter table exclusion CONVERT TO CHARACTER SET utf8;

First time I’ve ever seen that one.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
 

8 Responses to MySQL: ERROR 1267 (HY000): Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation ‘=’

  1. Pedro says:

    I’ve found these kind of errors at column-level too, with these two collations general & unicode, it is a little weird…

  2. Stefan Hinz says:

    Search the MySQL Reference Manual for “error 1267″, and you’ll be directed to this page:
    http://dev.mysql.com/doc/refman/5.1/en/charset-repertoire.html
    which explains what’s happening and why.

    (Thanks to our brand new Google Appliance searching the MySQL Manual actually works now. :-) )

    Regards,

    -Stefan

  3. James says:

    Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs. I dont know how your blog came up, must have been a typo, i duno. Anyways, I just clicked it and here I am. Your blog looks good. Have a nice day. James.

  4. Damien says:

    Well spoken!! Thanks for information. Bookmarked!!!!

  5. Inessa says:

    It has long been looking for this information, thank you.

  6. muratcan says:

    #1146 – Table ‘XXXXX.XXXX.exclusion’ doesn’t exist

  7. Maxime Corson says:

    You save me and my prod environment ! Thank you so much !

  8. jon says:

    Awesome! Really glad I could help.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>