mysql导入:ERROR 1118 (42000): Row size too large (> 8126)
最近在做数据库还原时候,遇到以下问题
ERROR 1118 (42000) at line 79532: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRnt row format, BLOB prefix of 768 bytes is stored inline.
解决方式:
修改mysql的配置文件my.cnf:
innodb_file_format = Barracuda
innodb_file_per_table = 1
然后重启mysql后对目标表执行:
Alter table <table_name> engine=innodb ROW_FORMAT=DYNAMIC;
最后在重新导入。
如果还是不行,考虑调整参数:
innodb_log_file_size = 256M 调大这个配置试试