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.
由于目标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