Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' in MySQL Stored Procedure

前端 未结 2 1038
广开言路
广开言路 2021-02-02 13:24

I checked the database table and found it was in latin1_swedish_ci so i\'ve changed it to utf8_general_ci then I changed the collation from latin

2条回答
  •  庸人自扰
    2021-02-02 14:06

    so the answer is simple. It seems you missed the change as stated by MKJ ^^ but the actual syntax to alter your tables looks like this.

    alter table `dbname`.`tablename` convert to character set utf8 collate utf8_general_ci;
    

    Applied as an individual script or at the end of your create table statement you should be able to relate all related tables back to the same charset

提交回复
热议问题