mysql数据迁移问题

把高版本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
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值