碼上歡樂
首頁
榜單
標簽
關於
搜索
相關內容
簡體
繁體
[HY000][1267] Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLIC for operation '='
本文轉載自
查看原文
2022-04-01 15:09
756
實用工具相關問題
在鏈接地址?connectionCollation=utf8mb4_general_ci指定下
或者下面方式
出現這種問題就是關聯表的字符集不匹配
1.查看數據庫的字符集
show variables where Variable_name like 'collation%';
結果:
2.查看關聯表字符集
show create table table_name;
3.給關聯表設置字符編碼
alter table table_name default character set utf8mb4 collate=utf8mb4_general_ci;
4.給關聯表字段設置字符編碼
ALTER TABLE table_name convert to CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
×
免責聲明!
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。
猜您在找
(SQL查詢報錯)Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
mysql 1267 - Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '='
MySql Exception: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)
mysql設置了utf8mb4,為什么還有utf8mb4_general_ci和utf8mb4_0900_ai_ci?
【mysql】【轉發】[Err]1267 - Illegal mix of collations(utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,I
Mysql編碼引起的 Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT)錯誤
utf8mb4_0900_ai_ci 報錯 根據原來的字符集修改
SQL導入異常[ERR] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'
MySql數據庫導入sql錯誤 Unknown collation: 'utf8mb4_0900_ai_ci'
MySql數據庫導入sql錯誤 Unknown collation: ‘utf8mb4_0900_ai_ci‘
粵ICP備18138465號
© 2018-2026 CODEPRJ.COM