在项目迁移之后一个视图的访问出现了问题,报了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错误​相关推荐

  1. 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 ...

  2. 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 ...

  3. 1267 'Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_gener

    这个错误是在使用django框架的时候,一次偶然间没有设置数据库的字符集为utf8,导致的问题. 还好是刚开始所以就重新创建了一下数据库指定字符集为utf8就好了

  4. Illegal mix of collations (XXX) and (XXX) for operation ‘XXX’

    问题描述: mybatis使用INSTR的时候报错(数据库为MySQL)-- Illegal mix of collations (XXX) and (XXX) for operation 'XXX' ...

  5. 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 ...

  6. MySQL replication illegal mix of collations

    MySQL replication case 一则 转载:http://www.vmcd.org/2013/09/mysql-replication-case-%E4%B8%80%E5%88%99/ ...

  7. mysql illegal mix of_mysql提示:Illegal mix of collations for operation ‘UNION’

    语句很简单 代码如下 ?php $connection=mysql_connect(localhost,root,password); //连接并选择数据库服务器 mysql_select_db(te ...

  8. 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 ...

  9. 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 ...

最新文章

  1. 【Dubbo源码阅读系列】之远程服务调用(上)
  2. python系统-python 系统相关操作
  3. html的li浮动之后往下移动,多个li浮动后居中显示问题
  4. nested exception is java.lang.ClassNotFoundException: Interceptor
  5. 《白帽子将Web安全》摘抄
  6. .NET 基金会项目介绍 - ReactiveUI
  7. DP专练1( [NOIP 2003]加分二叉树 + 太空梯 )
  8. WPS重复数据高亮显示
  9. Spring 创建代理类流程跟踪
  10. B1816 扑克牌 二分答案 + 贪心
  11. ESXi虚拟机装系统,报错 /vmlinuz has invalid signature 解决方法
  12. Linux之交叉编译器的构建
  13. mac共享文件android,Mac访问局域网共享文件方法
  14. 什么是B2B,B2C,O2O?
  15. 疯狂的java 目录,疯狂创客圈 JAVA死磕系列 总目录
  16. 记录一次app崩溃信息调试
  17. 同程联盟景点门票动态程序 beta1.0源码
  18. 影视站长必备资料合集
  19. Seaborn多图组合
  20. 安利几个翻译照片的好用软件

热门文章

  1. 学习PHP7如何快速安装WEB服务器
  2. Fedora安装过程讲解
  3. 厉害!代表Java未来的ZGC深度剖析
  4. 这几天怎么头痛的厉害!
  5. Proxifier实现抓包
  6. vivado 仿真时出现 boost::filesystem::remove: 另一个程序正在使用此文件,进程无法访问。
  7. SSH登录慢的解决方案(例如等待很久才提示输入密码)
  8. 初中计算机基础知识考试题,初中计算机基础知识练习题集锦(学生)
  9. Windows与网络基础:计算机网络概述和计算机网络参考模型
  10. RPA应用场景-简历筛选