【发布时间】:2019-09-14 11:56:23
【问题描述】:
我正在使用 Percona mysql 客户端连接数据库,mysql Ver 8.0.15-5 for Linux on x86_64 (Source distribution)
mysql> SHOW SESSION VARIABLES LIKE 'collation_connection';
Variable_name Value
collation_connection utf8mb4_general_ci
mysql> call unit_create_with_dummy_users;
ERROR 1267 (HY000): Illegal mix of collations (utf8mb4_unicode_520_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
mysql>
与Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '=' 等其他错误消息不同,我相信所有表都具有相同的排序规则,但我的 collation_connection 不是吗?还是我理解错了?
【问题讨论】: