We help IT Professionals succeed at work.
Get Started

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

d60eba
d60eba asked
on
7,239 Views
Last Modified: 2012-05-05
Hi,

I have upgraded to a new server, running MySQL 4.1.7 and using phpMyAdmin 2.6.1-pl3.

On running a simple query:

SELECT *
FROM pi_sms_message_queue
WHERE message_sent = 'n'
LIMIT 0 , 30

I receive the following error in phpMyAdmin:

#1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='

The collation of that message_sent column is latin1_swedish_ci. Running this query:

SHOW VARIABLES LIKE 'coll%'

Produces:

Variable_name  Value  
collation_connection utf8_general_ci
collation_database latin1_swedish_ci
collation_server utf8_general_ci

And /etc/my.cnf is as follows:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
default-character-set=utf8
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

-----------

So...any ideas how I can fix this problem? I have googled but with no luck.

Cheers,

Leon
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE