[000014][MYSQL]
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文件时报错(在执行创建表或者增加字段时,发现row size长度过长,会导致出现以下错误)

解决: 

修改mysql的严格模式

 show variables like '%innodb_strict_mode%';
 
执行后如果为ON,则需要关闭

 Variable_name            Value
 innodb_strict_mode        ON

修改 /etc/my.cnf 
 
右键编辑,在[mysqld]配置项下面新增一行

[mysqld]
innodb_strict_mode=0


 重启mysql数据库

看看改成功了没:

        show variables like '%innodb_strict_mode%';

 再导入数据试试已经成功了!

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐