8126)", it indicates that the maximum row size permissible..."/> 8126)", it indicates that the maximum row size permissible...">
Home >Database >Mysql Tutorial >How to Fix MySQL's 'Row size too large' Error?
When encountering the error "Row size too large (> 8126)", it indicates that the maximum row size permissible by MySQL has been exceeded. To resolve this issue, certain table design considerations and database configuration adjustments can be implemented.
The suggested solution proposed on Stack Exchange involves modifying settings in the my.cnf file:
Example Command:
ALTER TABLE table_name ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
Fallback to MyISAM: In case the above measures don't resolve the issue, consider using MyISAM as the temporary storage engine for internal data. Add the following line to the my.cnf file:
internal_tmp_disk_storage_engine=MyISAM
The above is the detailed content of How to Fix MySQL's 'Row size too large' Error?. For more information, please follow other related articles on the PHP Chinese website!