Bug #47425 | replication breaks with Illegal mix of collations | ||
---|---|---|---|
Submitted: | 18 Sep 2009 0:22 | Modified: | 19 Oct 2009 10:36 |
Reporter: | H F | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.0.85-ius-log | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | ERROR 1267 (HY000): Illegal mix of collations |
[18 Sep 2009 0:22]
H F
[18 Sep 2009 4:22]
Valeriy Kravchuk
Do you have the same collations declared for this table on master and slave? Looks like your UPDATE comes from stored procedure. Please, check http://dev.mysql.com/doc/refman/5.1/en/create-procedure.html. Default collation of character_set_database (or declared CHARACTER SET) is used for parameter of procedure. If you are working with a table having different collation you'll have to use CAST() or CONVERT(). See http://dev.mysql.com/doc/refman/5.1/en/charset-convert.html.
[18 Sep 2009 16:46]
H F
Well, all databases are a binary copy of the primary - so there are no differences. "Show create table" shows the same collation and charst, the global variables also. The update statement does not!! come out of a stored procedure but out of a php script. There is no chance to use any cast or convert. Any other suggestions or areas to investigate?
[19 Sep 2009 10:36]
Sveta Smirnova
Thank you for the feedback. > The update statement does not!! come out of a stored procedure but out of a php script. This is possible what PHP changed connection collation. > `dm` varchar(50) collate latin1_german1_ci NOT NULL, Query with "where dm= NAME_CONST('srv',_latin1'123')" should lead to same error if run with same settings on master. So this is most likely PHP changed connection collation. But to be sure please send us binary log affected, so we can see which connection information is in it.
[19 Oct 2009 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".