[Err] 1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=

[Err] 1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.

错误原因:sql中某字段内容非常大
将字段类型设为TEXT 或 BLOB 或 mediumtext
将row_format 设置为 dynamic(备注:查询资料别人都说设置为compressed,我设置保存后老是compact,所以就查资料说设置成dynamic 也可以)
设置方法:选中表名-右键-设计表
在这里插入图片描述点击选择: 选项-行格式
在这里插入图片描述将row_format 设置为 dynamic
在这里插入图片描述问题解决。

发布了10 篇原创文章 · 获赞 1 · 访问量 369

猜你喜欢

转载自blog.csdn.net/weixin_38919176/article/details/104195346