把高版本MySQL的.sql文件往低版本的MySQL中迁移会遇到迁移失败的问题。代码如下
There was error(s) while executing the queries . The query and the error message has been logged at: C:\Roaming\SQLyog\sqlyog.err. Please click on "Open Error File..." to open the error file.
解决办法,打开高版本的sql文件打开修改编码格式为低版本支持的
对于低于mysql5.5.3的版本:
编码:utf8 -----------> 对应的默认排序规则 utf8_general_ci
对于高于mysql5.5.3的版本低于mysql8.0版本:
编码 utf8 ------------>对应的默认排序规则 utf8_general_ci
编码 utf8mb4 ------------>对应的默认排序规则 utf8mb4_general_ci
编码有两种选择,对应的规则有多种选择
对于高于mysql8版本:
编码 utf8 ------------>对应的默认排序规则 utf8_general_ci
编码 utf8mb4 ------------>对应的默认排序规则 utf8mb4_0900_ai_ci
原文链接:https://blog.csdn.net/pengxiaozhong/article/details/128609951
1521

被折叠的 条评论
为什么被折叠?



