character encoding - MySQL Collation Mixture Error When Selecting View -
i've been fighting collation , character set battle while now, , of course when thought winning, stumped new issue. of tables , rows , database in same collation (utf8_unicode_ci)m reason, half of views work , other half error:
error code: 1267. illegal mix of collations (utf8_general_ci,implicit) , (utf8_unicode_ci,implicit) operation '='
can shed light why i'm getting error , how fix it? attempted alter view workbench, popup shows same error message when try so, quite frustrating.
you can use console check on view (https://dev.mysql.com/doc/refman/5.0/en/show-create-view.html):
show create view ....
and should check collation set fields in view.
something tells me you've created database 1 collation, continued importing or creating views , datatables in another, , started changing collation existing database , view 1 one. while surely looks rather entertaining, recommend recreating database overall (from scripts) correct collation , character.
Comments
Post a Comment