Comments
3 comments
-
Same problem here, and this appears to be the bit that causes the error:
SELECT <br> 'TRIGGER' AS `TYPE`,<br> t.TRIGGER_SCHEMA AS `DATABASE`,<br> t.TRIGGER_NAME AS `NAME` ,<br> 'TABLE' AS `REFERENCED_TYPE`,<br> t.EVENT_OBJECT_SCHEMA AS `REFERENCED_DATABASE`,<br> t.EVENT_OBJECT_TABLE AS `REFERENCED_NAME`<br>FROM <br> INFORMATION_SCHEMA.TRIGGERS t<br>WHERE t.TRIGGER_SCHEMA = 'sys'<br><br>UNION ALL<br>SELECT<br> 'TABLE' AS `TYPE`,<br> c.CONSTRAINT_SCHEMA AS `DATABASE`,<br> c.TABLE_NAME AS `NAME`,<br> 'TABLE' AS `REFERENCED_TYPE`,<br> c.UNIQUE_CONSTRAINT_SCHEMA AS `REFERENCED_DATABASE`,<br> c.REFERENCED_TABLE_NAME AS `REFERENCED_NAME`<br>FROM<br> INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS c<br>WHERE c.CONSTRAINT_SCHEMA = 'sys';
TRIGGER_NAME is utf8_general_ci, while TABLE_NAME is utf8_tolower_ci [at least in MySQL 8.0.16]. This basically makes the tool unusable, so it'd be nice to get it fixed...
-
I also get the error "Illegal mix of collations for operation 'UNION'" when trying to compare to a local mysql (version
database. This will occur even if it is a completely empty database. I've tried all options available in the mysqlcompare tool, nothing helps.8.0.18)
As PeterL notes, this makes the tool unusable. -
Hi guys,
Is there a fix for this issue?
Thanks,
Chris
Add comment
Please sign in to leave a comment.
I got an Illegal mix of collections of operation 'UNION' when I try to compare an AWS MySQL to a localhost MySQL.