SQL #1071. Specified key was too lang; max key length is 767 bytes
super
2021-11-29 12:05

Mysql数据表迁移时报错
Specified key was too lang; max key length is 767 bytes
报错原因:
发现原Mysql数据库为5.7版本,而目标Mysql数据库为5.6版本(查阅文档发现,Mysql5.6版本索引列的最大长度为767字节,因此报错),将数据库升级为5.7版本后 可以成功导入到目标数据库

0 条讨论