使用Navicat12 将Oracle数据库同步到mysql中出现的问题

在使用Navicat将Oracle数据库同步到MySQL时遇到两个问题:1. Row size too large错误,通过修改My.cnf配置文件解决了;2. longblob大数据无法插入,通过增加max_allowed_packet参数解决。详细解决方案和参考资料已提供。
摘要由CSDN通过智能技术生成

 1.解决同步时出现的Row size too large错误。

现象截图如下

出错信息 

1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

参考网址https://stackoverflow.com/questions/22637733/mysql-error-code-1118-row-size-too-large-8126-changing-some-columns-to-te

由于目标MySql库项目要求使用用innodb格式的表,所以网上其他人那些改myisamg表格式的方法就不能用了,测试了很多方法,只有一下方法最终解决了这个的问题。

解决方法,在My.cnf或my.ini文件中加入

innodb_file_per_table=1

innodb_file_format=Barracuda

innodb_file_format_check = ON

innodb_log_file_size = 512M

innodb_strict_mode = 0

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值