Row size too large error in mysql create table query

The total size of all fields in the table is more than the limit, 65535, that’s why you are getting this error.

You should use text type instead of varchar for long strings. Replace all varchar(8000) with text, and it should work.

Or, even better, use appropriate data types instead of the “too large” ones. You don’t really need 8000 characters to store currency, do you?

Leave a Comment