I tried creating a table, and got the “Row size too large” error. No problem, I just changed some of the large VARCHAR fields to TEXT, and it worked. But now I have no idea how close I am to the row size limit. How do I determine the maximum row size for a table?
MySQL version: 5.5.
It depends on the storage engine you use and the row format chosen for that table, and also your indexes. It’s hard to calculate because the database is able to constantly change its structure.
But the VARCHAR, TEXT and BLOB are a variable-length data types, it has a length property, but the value can be empty; calculation may be not exact. Have a look at
Avg_row_lengthfield ininformation_schema.tables.EDIT: Have a look at: Data Type Storage Requirements.