mysql text 最大长度 报错 Row size too large. The maximum row size for the used table type

爱被打了一巴掌 2021-09-02 04:58 1026阅读 0赞

数据类型长度如下
























TINYTEXT 256 bytes  
TEXT 65,535 bytes ~64kb
MEDIUMTEXT  16,777,215 bytes ~16MB
LONGTEXT 4,294,967,295 bytes ~4GB

报错 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs

如果增大 text类型 字段的内容,就会报上面的错误。Row size too large。表示行的内容太多了,

可以修改类型为 MEDIUMTEXT 或 LONGTEXT

发表评论

表情:
评论列表 (有 0 条评论,1026人围观)

还没有评论,来说两句吧...

相关阅读