Mysql报错解决:Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)
原因:
查询后发现是因为临时表的字符集是 CHARSET=utf8mb4 COLLATE= utf8mb4_unicode_ci而此字符集是继承于数据库的, 查看发现库的字符集是 让实施同事查看后发现创建数据库时做了如下设置:collation_server= utf8mb4_unicode_ci 从而后续创建临时表和函数时(未显式制定utf8mb4_0900_ai_ci), 字符集都是utf8mb4_unicode_ci,而我们的建表语句中是制定了字符集为 utf8mb4_0900_ai_ci, 于是就出现了开头的错误。
解决办法:
- alter database gts_sjck CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- 将mysql的配置文件(/etc/my.cnf)中下边的注释掉 collation_server= utf8mb4_unicode_ci
- 重启数据库
- 重启etl服务
教训:
若是自建的mysql, 创建完库后续检查字符集,应为utf8mb4_0900_ai_cishow variables where Variable_name like ‘%collation%’;
Mysql报错解决:Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)相关推荐
- mysql Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) fo...
错误:"Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for ...
- Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT
Mysql 报错: `Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_c ...
- Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operat
多表关联查询报错先看报错结果 我想通过这个org_post_user_name 表和这个has 的复合表进行查询 通过这个条件关联在一起查询 where ssorg.org = has.qwe 然后 ...
- Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT)
@[TOC](Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IM ...
- 报错:Illegal mix of collations
问题: 服务端报错:Error: ER_CANT_AGGREGATE_2COLLATIONS: Illegal mix of collations (latin1_swedish_ci,IMPLICI ...
- Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci
在进行表关联查询,特别是跨库时,特别容易报这个错,原因是关联的两张表对应的排序规则不一致. 在navicate中右键表,查看对象信息 在join时,添加COLLATE属性,比如a表关联b表,a表的排序 ...
- Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operat
原因:两张表有不同的排序规则 一个排序规则是默认是utf8mb4_unicode_ci,另一张表的排序规则是utf8mb4_general_ci,它说您在操作中使用了非法的排序规则组合=. 解决方法: ...
- MySQL:Illegal mix of collations (utf8_general_ci,COERCIBLE) and (gbk_chinese_ci,IMPLICIT) for operat
MySQL:Illegal mix of collations (utf8_general_ci,COERCIBLE) and (gbk_chinese_ci,IMPLICIT) for operat ...
- 【Java】application run failed Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
springboot 启动时报这个错:application run failed Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and ...
最新文章
- laravel 中间件不生效_laravel中间件实战(luke)
- 数据库基础 (六)单表查询进阶
- 卷积层和全连接层的区别_1*1的卷积核和全连接层有什么异同?
- standard python venv module_python 在venv中报错 ModuleNotFoundError: No module named 'MySQLdb'
- C++类的组合和前向引用
- 如果你觉得 Git 很迷惑人,那么这份小抄正是为你准备的!
- Linux内存管理:内存描述之内存页面page
- 惊,Java 字符串拼接竟然有这么多玩法!| CSDN 原力计划
- 《剑指offer》面试题6——重构二叉树——已知 前序遍历和中序遍历,求后序遍历(C++)
- 哈理工oj 1006 River Hopscotch
- 红外测距模块工作原理_红外测温仪方案工作原理
- c语言dsp编程论坛,针对Ti的DSP C语言编程
- 计算机室无线网络,在小型办公室中设置无线网络
- 花式感染 Windows PE 病毒的一百种方法,你中过招吗?
- java解析eml文件_使用JavaMail解析EML文件详解
- 找出相似的图片--C#
- cs231n-assignment2的笔记
- 怎样使用markdown做笔记、python入门小白
- python做股票系统_GitHub - xytree/stock: stock,股票系统。使用python进行开发。
- vip混合测试v号打卡好的卡仕达看哈看收到货卡仕达库哈斯
热门文章
- ASP.NET MVC3 快速入门
- netty整合shiro,报There is no session with id [xxxxxx]问题定位及解决
- 1212淘宝精选店铺红包
- synchronized,ReentrantLock、ReentrantReadWriteLock和StampedLock
- #论文投稿必备#如何解决阅读文献的三大问题:坐不住,记不住,想不开
- 易中天:讲《从老庄到禅宗》
- 跳槽如何谈薪资?不以升职加薪为目的的跳槽,都是耍流氓!
- SBW(线控转向系统Matlab/Simulink模型搭建)
- 线控转向量产商用的挑战与曙光
- PVI(pvifa计算公式)