MySQL5.5.27 uses the Restore From SQL Dump function to import the database table Row size too large

Problem description: The MySQL database version is MySQL5.5.27, and the following error message appears when using its Restore From SQL Dump function to import database tables

Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs

Finally, I found the table where the import error occurred, and found that the table has more than 200 column fields. This version of the database cannot withstand the import of so many fields.

Solution:

The first: For the table, only select the more important column fields to build the table structure, useless data does not need to be imported

The second type: upgrade the MySQL version, for example, after upgrading from MySQL 5.5.27 to MySQL 8.0.23, it is possible to import the data table structure with a large number of column fields again.

Guess you like

Origin blog.csdn.net/y_bccl27/article/details/114691798