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.
执行以下SQL语句,查看严格模式是否是开启
// 查看严格模式是否是开启(这里在Navicat新建查询里运行也是一样的)
show variables like '%innodb_strict_mode%';
执行后如果为ON,则需要关闭
Variable_name Value
innodb_strict_mode ON
方法1:编辑sql文件,在开头设置一下innodb_strict_mode为0
SET innodb_strict_mode = 0;
方法2:修改配置
1、找到MySQL的配置文件位置
我的位置如 C:\ProgramData\MySQL\MySQL Server 8.0\my.ini,可查看系统变量找到安装目录。
右键编辑,在[mysqld]配置项下面新增一行
# 严格模式 0是关闭1是打开
innodb_strict_mode=0
2、保存,然后重启MySQL服务
// 再次执行以下SQL语句,查看严格模式是否是关闭
show variables like '%innodb_strict_mode%';
如果为OFF,则说明执行成功。再导入试试
我就是使用此方法解决,导入就没问题了
Variable_name Value
innodb_strict_mode OFF