码上快乐
1秒登录
首页
榜单
标签
关于
搜索
相关内容
简体
繁体
[HY000][1267] Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLIC for operation '='
本文转载自
查看原文
2022-04-01 15:09
756
实用工具相关问题
在链接地址?connectionCollation=utf8mb4_general_ci指定下
或者下面方式
出现这种问题就是关联表的字符集不匹配
1.查看数据库的字符集
show variables where Variable_name like 'collation%';
结果:
2.查看关联表字符集
show create table table_name;
3.给关联表设置字符编码
alter table table_name default character set utf8mb4 collate=utf8mb4_general_ci;
4.给关联表字段设置字符编码
ALTER TABLE table_name convert to CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
×
免责声明!
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。
猜您在找
(SQL查询报错)Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
MySQL语句错误:Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT)
ILLEGAL MIX OF COLLATIONS (UTF8MB4_0900_AI_CI,IMPLICIT) AND (UTF8MB4_GENERAL_CI,IMPLICIT) 错误解决
java.sql.SQLException: Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '='
【MySQL】Navicat踩坑:Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation 'instr'
mysql 1267 - Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '='
Procedure execution failed 1267 - Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,COERCIBLE) for operation 'like' 。。。
Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operation '='
粤ICP备18138465号
© 2018-2025 CODEPRJ.COM