Tag: Illegal预览模式: 普通 | 列表
错误如下:
引用内容 引用内容
General error,  message from server: "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'"

编码问题,一个表是latin1字符集的,而传进的参数是UTF-8的,所以需要统一字符集,指令如下:
mysql> Alter   TABLE   suggest   CONVERT   TO   CHARACTER   SET   utf8;
Query OK, 98 rows affected (0.05 sec)
Records: 98  Duplicates: 0  Warnings: 0

查看更多...

Tags: latin1 UTF8 Illegal mix

分类:Database | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1549