mysql general error,mysql General error: 1267 Illegal mix of collations错误
在项目迁移之后一个视图的访问出现了问题,报了mysql的1267错误,具体报错信息就是
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8mb4_unicode_ci,COERCIBLE) and (utf8mb4_general_ci,COERCIBLE) for operation '='
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8mb4_unicode_ci,COERCIBLE) and (utf8mb4_general_ci,COERCIBLE) for operation '='
查看了构建的视图
发现type的字符集和user_name不一致,貌似是字符集有问题,尝试修改type的字符集
我的视图
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `goods_in_out_view` AS SELECT
`goods_in`.`id` AS `id`,
`goods_in`.`shop_id` AS `shop_id`,
'in' AS `type`,
`goods_
mysql general error,mysql General error: 1267 Illegal mix of collations错误相关推荐
- 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 ...
- 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 ...
- 1267 'Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_gener
这个错误是在使用django框架的时候,一次偶然间没有设置数据库的字符集为utf8,导致的问题. 还好是刚开始所以就重新创建了一下数据库指定字符集为utf8就好了
- Illegal mix of collations (XXX) and (XXX) for operation ‘XXX’
问题描述: mybatis使用INSTR的时候报错(数据库为MySQL)-- Illegal mix of collations (XXX) and (XXX) for operation 'XXX' ...
- Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=
问题描述:MySQL进行字符串比较时发生错误: SELECT a.equ_no, b.fullCode FROM equipment a, ( SELECT t.*, getEquTypeFullCo ...
- MySQL replication illegal mix of collations
MySQL replication case 一则 转载:http://www.vmcd.org/2013/09/mysql-replication-case-%E4%B8%80%E5%88%99/ ...
- mysql illegal mix of_mysql提示:Illegal mix of collations for operation ‘UNION’
语句很简单 代码如下 ?php $connection=mysql_connect(localhost,root,password); //连接并选择数据库服务器 mysql_select_db(te ...
- 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 ...
- 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 ...
最新文章
- 【Dubbo源码阅读系列】之远程服务调用(上)
- python系统-python 系统相关操作
- html的li浮动之后往下移动,多个li浮动后居中显示问题
- nested exception is java.lang.ClassNotFoundException: Interceptor
- 《白帽子将Web安全》摘抄
- .NET 基金会项目介绍 - ReactiveUI
- DP专练1( [NOIP 2003]加分二叉树 + 太空梯 )
- WPS重复数据高亮显示
- Spring 创建代理类流程跟踪
- B1816 扑克牌 二分答案 + 贪心
- ESXi虚拟机装系统,报错 /vmlinuz has invalid signature 解决方法
- Linux之交叉编译器的构建
- mac共享文件android,Mac访问局域网共享文件方法
- 什么是B2B,B2C,O2O?
- 疯狂的java 目录,疯狂创客圈 JAVA死磕系列 总目录
- 记录一次app崩溃信息调试
- 同程联盟景点门票动态程序 beta1.0源码
- 影视站长必备资料合集
- Seaborn多图组合
- 安利几个翻译照片的好用软件