問題描述
通過DMS控制台對RDS MySQL或自建MySQL資料庫(ECS自建資料庫或IDC自建資料庫)執行SQL語句時,出現類似如下報錯。
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問題原因
MySQL在建立表時,限制單行長度不能超過65535位元組。無論InnoDB儲存引擎是否支援更大的儲存,都會強制執行該限制,詳情請參見MySQL官方文檔。
解決方案
您可以通過如下兩種方法解決此問題:
適用於
Data Management
雲資料RDS