SQL #1071. Specified key was too lang; max key length is 767 bytes
super
2021-11-29 12:05
![views](/static/super/images/icon/evaluate-9a.png)
Mysql数据表迁移时报错
Specified key was too lang; max key length is 767 bytes
报错原因:
发现原Mysql数据库为5.7版本,而目标Mysql数据库为5.6版本(查阅文档发现,Mysql5.6版本索引列的最大长度为767字节,因此报错),将数据库升级为5.7版本后 可以成功导入到目标数据库
![](/uploads/article/20211129/f408ae0674fd7502dc99e1e5f53233c1.png)
0 条讨论