Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Apr 2008 at 21:09 UTC
Updated:
8 Mar 2012 at 08:44 UTC
Jump to comment: Most recent
Comments
Comment #1
jcasis commentedI'am also receiving the same error, is anyone out there able to give any advice as to what could be a possible fix for this?
I've posted the error I get below.
user warning: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' query: SELECT aa.aid, a.type FROM trigger_assignments aa LEFT JOIN actions a ON aa.aid = a.aid WHERE aa.hook = 'nodeapi' AND aa.op = 'view' ORDER BY weight in /home/joe123/public_html/drupal/modules/trigger/trigger.module on line 146.
Any suggestion is greatly appreciated.
Regards,
Joe
Comment #2
alt2 commentedI'm getting exactly the same error message visible in Status Report on a new vanilla install 6.12 at HostGator.
I've created no Actions. The MySql version is 5.1.30.
Here's what I see if I go to Triggers:
user warning: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' query: SELECT h.aid, a.description FROM trigger_assignments h LEFT JOIN actions a on a.aid = h.aid WHERE h.hook = 'nodeapi' AND h.op = 'presave' ORDER BY h.weight in /home/atabor/public_html/modules/trigger/trigger.admin.inc on line 279.
user warning: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' query: SELECT h.aid, a.description FROM trigger_assignments h LEFT JOIN actions a on a.aid = h.aid WHERE h.hook = 'nodeapi' AND h.op = 'insert' ORDER BY h.weight in /home/atabor/public_html/modules/trigger/trigger.admin.inc on line 279.
user warning: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' query: SELECT h.aid, a.description FROM trigger_assignments h LEFT JOIN actions a on a.aid = h.aid WHERE h.hook = 'nodeapi' AND h.op = 'update' ORDER BY h.weight in /home/atabor/public_html/modules/trigger/trigger.admin.inc on line 279.
user warning: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' query: SELECT h.aid, a.description FROM trigger_assignments h LEFT JOIN actions a on a.aid = h.aid WHERE h.hook = 'nodeapi' AND h.op = 'delete' ORDER BY h.weight in /home/atabor/public_html/modules/trigger/trigger.admin.inc on line 279.
user warning: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' query: SELECT h.aid, a.description FROM trigger_assignments h LEFT JOIN actions a on a.aid = h.aid WHERE h.hook = 'nodeapi' AND h.op = 'view' ORDER BY h.weight in /home/atabor/public_html/modules/trigger/trigger.admin.inc on line 279.
Comment #3
alt2 commentedI figured this out. My Fantistico install of Drupal intialized the MySQL database with collation set to utf8_general_ci but installs the core modules with unicode instead. Additional modules come in mixed. Things then start tweaking. I did a fresh manual install so I could set up the database myself and all was well.
Comment #5
l4smb commentedTo change the character set (and collation) for all columns in an existing table, use... ALTER TABLE tbl_name CONVERT TO CHARACTER SET charset_name [COLLATE collation_name];
Comment #6
alby111 commentedCan someone give a better explanation on how to resolve thsi Im new in this
user warning: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' query: SELECT aa.aid, a.type FROM trigger_assignments aa LEFT JOIN actions a ON aa.aid = a.aid WHERE aa.hook = 'nodeapi' AND aa.op = 'presave' ORDER BY weight in /home/saltatv/public_html/MYSITE.com/profesionales/modules/trigger/trigger.module on line 146.
thanks a lot
Comment #7
stGeorge-1 commentedTry here for some suggested solutions to similar problems
http://drupal.org/node/140303
Comment #8
jimkomara commentedSo what is it supposed to be? I just set everything to unicode based on this comment. Is it supposed to be general? I am getting some errors.
Comment #9
gábor hojtsyComment #10
sunTagging, reclassifying. Starting with MySQL 5.1, utf8_general_ci is a serious problem for Drupal sites in other languages than English due to non-backwards-compatible collation changes in MySQL 5.1.
For now, just trying to tag related issues. To figure out a full and proper problem analysis afterwards.
Comment #11
sunThanks for taking the time to report this issue.
However, marking as duplicate of #772678: Database default collation is not respected.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.
Comment #13
Anonymous (not verified) commentedHere is a simple PHP script to recursively change the charset and collation of tables in a database.
Thanks to l4smb for posting the SQL.
Hope this helps!