Illegal mix of collations - MariaDB 10.4 - LUA

点赞
用户7851053
用户7851053

正如错误信息所说,yellowpages_posts.realUser 使用的是utf8mb4_unicode_ci排序规则,而users.identifier使用的是utf8mb_general_ci

你需要明确设置一个排序规则到另一个,例如:

yellowpages_posts.realUser = users.identifier COLLATE utf8mb4_unicode_ci

同时也可以查看https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html

2020-09-12 12:38:49