Philippe Chaintreuil
2010-01-20 13:34:39 UTC
Hey all.
I think my MySQL DB isn't set up 100% the way SQLGrey would like.
Anytime I get a non-ASCII character in an e-mail address, MySQL pukes
all over SQLGrey's shoes. SQLGrey is forced to disconnect and reconnect
and the message is allowed through leaving a chink in my anti-spam armor.
I see lines like this in my logs:
--------------------------------------------------------------------
Jan 20 02:10:01 hobbes Illegal: mix of collations
(latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
operation '=', reconnecting to DB
Jan 20 02:10:01 hobbes sqlgrey: warning: Use of uninitialized value in
concatenation (.) or string at /usr/sbin/sqlgrey line 1154.
Jan 20 02:10:01 hobbes sqlgrey: dbaccess: error: couldn't access
from_awl table:
Jan 20 02:10:01 hobbes sqlgrey: dbaccess: warning: couldn't do query:
Jan 20 02:10:01 hobbes UPDATE: from_awl SET last_seen = NOW(),
first_seen = first_seen WHERE sender_name = 'aloïsheinzfoiqu' AND
sender_domain = 'gmail.com' AND src = '222.216.29.53':
Jan 20 02:10:01 hobbes Illegal: mix of collations
(latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
operation '=', reconnecting to DB
--------------------------------------------------------------------
Now, I just know enough about MySQL to be able to shoot myself in the
foot.... And I'm a dumb American who doesn't usually need to step
outside the ASCII garden and deal with other characters, so it's all
kind of foreign to me.... [Pun intended.]
Can anyone help me figure out what commands I need to issue on my
database to make this error go away?
Many thanks in advance.
-- Philippe Chaintreuil
I think my MySQL DB isn't set up 100% the way SQLGrey would like.
Anytime I get a non-ASCII character in an e-mail address, MySQL pukes
all over SQLGrey's shoes. SQLGrey is forced to disconnect and reconnect
and the message is allowed through leaving a chink in my anti-spam armor.
I see lines like this in my logs:
--------------------------------------------------------------------
Jan 20 02:10:01 hobbes Illegal: mix of collations
(latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
operation '=', reconnecting to DB
Jan 20 02:10:01 hobbes sqlgrey: warning: Use of uninitialized value in
concatenation (.) or string at /usr/sbin/sqlgrey line 1154.
Jan 20 02:10:01 hobbes sqlgrey: dbaccess: error: couldn't access
from_awl table:
Jan 20 02:10:01 hobbes sqlgrey: dbaccess: warning: couldn't do query:
Jan 20 02:10:01 hobbes UPDATE: from_awl SET last_seen = NOW(),
first_seen = first_seen WHERE sender_name = 'aloïsheinzfoiqu' AND
sender_domain = 'gmail.com' AND src = '222.216.29.53':
Jan 20 02:10:01 hobbes Illegal: mix of collations
(latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
operation '=', reconnecting to DB
--------------------------------------------------------------------
Now, I just know enough about MySQL to be able to shoot myself in the
foot.... And I'm a dumb American who doesn't usually need to step
outside the ASCII garden and deal with other characters, so it's all
kind of foreign to me.... [Pun intended.]
Can anyone help me figure out what commands I need to issue on my
database to make this error go away?
Many thanks in advance.
-- Philippe Chaintreuil