Unknown collation: 'utf8mb4_0900_ai_ci
时间: 2023-10-17 16:27:16 浏览: 197
WordPress导入数据库出现”Unknown collation: ‘utf8mb4_unicode_ci”错误的解决办法
Unknown collation: 'utf8mb4_0900_ai_ci' 是在将sql文件导入到mysql数据库时出现的错误。 这个错误是由于mysql数据库不支持utf8mb4_0900_ai_ci这个字符集导致的。要解决这个问题,你需要将sql文件中所有的utf8mb4_0900_ai_ci替换为utf8_general_ci,并将所有的utf8mb4替换为utf8。 这样做可以将字符集统一为mysql数据库支持的字符集,避免出现错误。有相关的资料可以提供参考,特别是关于WordPress导入数据库出现相似错误的解决办法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Navicat,mysql库导入表报错:Unknown collation: ‘utf8mb4_0900_ai_ci](https://blog.csdn.net/haohao328559651/article/details/132167510)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [WordPress导入数据库出现”Unknown collation: ‘utf8mb4_unicode_ci”错误的解决办法](https://download.csdn.net/download/weixin_38635794/12830370)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文