Skip to main content

Database Error Illegal Mix of Collations

Comments

4 comments

  • ffeingol
    Based on the error it sounds like you have tables with different Collation that MySQL does not like. If you go into phpMyAdmin and select the database the "main" part of the screen will show you all the tables along with the row count, type and Collation (along with other tings). Based on what you have posted, I'm assuming you'll see some tables with utf8_general_ci for the Collation and others with utf8mb4_unicode_520_ci. That will just identify what the issue is. Converting them to be one consistent Collation is going to be more complex. The Character Set and Collation tell MySQL how to store the various characters and how to sort them. Hopefully that gets you in the right direction.
    0
  • HedSpaces
    Thank you, ffeingol, I will check out your suggestion and post back here.
    0
  • HedSpaces
    The bulk of the tables are MyISAM and utf8_general_c1 but, there are several tables that are InnoDB and use utf8mb4_unicode_520_ci. These tables are plugins that have been on the site for a long time. They are WP-Optimize, Yoast, and Code Snippets. The first two have been on the site since it was built. All three were updated over a month ago and the error only started yesterday. So, I do not think this is a unicode issue; it seems like an issue with something inserted into the site somehow and I cannot find it. What concerns me is that the code I posted looks like it is selling "Levitra" pills and I do not know how this got inserted into the site or where in the site it is.
    0
  • HedSpaces
    So... this is a PharmaHack. (google it) How it got past my Sucuri Security Plugin, I do not know. I'm working on getting it out. This thread is resolved.
    0

Please sign in to leave a comment.