Symptoms
When importing a database using the command line or phpMyAdmin, you receive an error similar to the following.
ERROR 1118 (42000) at line 25: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
Description
This import error occurs when the database has a large row and Innodb strict mode enabled, or a table has over 600 fields.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Open
/etc/my.cnf
in your preferred text editor. - Check the
[MariaDB]
/[mysqld]
section for theinnodb_strict_mode
entry. - Disable strict mode.
- If the
innodb_strict_mode
entry is present, set the value toOFF
. - If the
innodb_strict_mode
entry is not present, add the following line to the[MariaDB]
/[mysqld]
section.innodb_strict_mode=OFF
- If the
- Save the changes and exit the text editor.
- Restart the
mysqld
service./usr/local/cpanel/scripts/restartsrv_mysql
Comments
0 comments
Article is closed for comments.