mysql5.7 data import 5.6 Index column size too large. The maximum column size is 767 bytes.

First check if the database is limited by the size of the index
SHOW variables like 'innodb_large_prefix'

If the query value is OFF, execute the following command

SET GLOBAL INNODB_LARGE_PREFIX = ON;

After execution, you have to check whether the current innodb_file_format engine format type is BARRACUDA

implement

SHOW variables like 'innodb_file_format'

If not, it needs to be modified

SET GLOBAL innodb_file_format = BARRACUDA;

OK, you can try to import data!

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324969872&siteId=291194637