MySQL 193错误:行大小超限,如何优化?

2026-05-20 21:450阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计144个文字,预计阅读时间需要1分钟。

MySQL 193错误:行大小超限,如何优化?

修改表结构时出错:行大小过大。使用表中类型的最大行大小(不计BLOBs)为65535。这包括存储开销,请查阅手册。您需要将一些列更改为TEXT或BLOBs。

修改表结构是,报错:

1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs

解决: 把表的其他长字段,改为text类型

比如将varchar的长度>500的,都修改为text

MySQL 193错误:行大小超限,如何优化?

本文共计144个文字,预计阅读时间需要1分钟。

MySQL 193错误:行大小超限,如何优化?

修改表结构时出错:行大小过大。使用表中类型的最大行大小(不计BLOBs)为65535。这包括存储开销,请查阅手册。您需要将一些列更改为TEXT或BLOBs。

修改表结构是,报错:

1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs

解决: 把表的其他长字段,改为text类型

比如将varchar的长度>500的,都修改为text

MySQL 193错误:行大小超限,如何优化?