亲身实践已解决:Mysql Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT

今天在把一个数据库的数据导出sql在另外一个库中执行的时候出现了这个问题,

查看当前的表类型为innodb

找到mysql的安装目录,找到配置文件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                                                                                                                                                      

找不到相关配置的自行添加。重启mysql问题就解决了

以上是 innodb 存储引擎的解决方案,在网上看到另一种解决方案如下:

移除创建表时的ROW_FORMAT设置,增加Engine=MyISAM , 意思大概是创建表时使用MyISAM存储引擎

猜你喜欢

转载自blog.csdn.net/w892824196/article/details/107358004