码上欢乐
首页
榜单
标签
关于
搜索
相关内容
简体
繁体
[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 1267 - Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '='
MySql Exception: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)
mysql设置了utf8mb4,为什么还有utf8mb4_general_ci和utf8mb4_0900_ai_ci?
【mysql】【转发】[Err]1267 - Illegal mix of collations(utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,I
Mysql编码引起的 Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT)错误
utf8mb4_0900_ai_ci 报错 根据原来的字符集修改
SQL导入异常[ERR] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'
MySql数据库导入sql错误 Unknown collation: 'utf8mb4_0900_ai_ci'
MySql数据库导入sql错误 Unknown collation: ‘utf8mb4_0900_ai_ci‘
粤ICP备18138465号
© 2018-2025 CODEPRJ.COM