【问题标题】:What is the error Illegal mix of collations?什么是错误 Illegal mix of collat​​ions?
【发布时间】:2011-11-10 16:52:09
【问题描述】:

Illegal mix of collat​​ions (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' 的错误是什么?

我无法登录我的网站http://homeodisha.com/

用户 ID : 演示 密码:demo

谢谢!!!

【问题讨论】:

  • (我不确定这是不是个好主意,您刚刚发布了用户名/密码)。您应该包含大量信息,例如表架构,如何在 php 中执行 mysql 连接。

标签: mysql utf-8 character-encoding


【解决方案1】:

尝试将您的查询更改为WHERE username=_utf8 'username_text' AND password =_utf8 'password_text'

【讨论】:

  • 嗨 A1 在我的表结构中,fl_accounts 表具有混合集合,例如用户名 varchar(255) utf8_general_ci 和密码 varchar(255) utf8_unicode_ci。我是否需要将所有 Mix 集合更改为 utf8_unicode_ci 或 utf8_general_ci?
猜你喜欢
  • 1970-01-01
  • 2019-03-15
  • 1970-01-01
  • 2016-05-11
  • 2019-11-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-08
相关资源
最近更新 更多