当django尝试将db与另一个外部crm同步时,会引发错误:
OperationalError(1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
我试图运行
ALTER TABLE table_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
没有结果。 还创建了cnf文件:
[client]
default-character-set=utf8
[mysqld]
character_set_client=utf8
character_set_server=utf8
collation_server=utf8_unicode_ci
并添加到conf
'OPTIONS': {
'read_default_file': 'full path to cnf file'
}
但它也没有结果。