开发者社区 问答 正文

DTS数据迁移/同步过程中结构迁移报Specified key was too long; m...

已解决

DTS数据迁移/同步过程中结构迁移报Specified key was too long; max key length is 767 bytes.

展开
收起
提个问题 2024-06-08 18:06:34 136 分享 版权
1 条回答
写回答
取消 提交回答
  • 开发者社区问答官方账号
    官方回答
    采纳回答
    报错原因是mysql innoDB引擎限制了索引字段长度为767字节,可以通过设置innodb_large_prefix参数可以将InnoDB索引长度上线扩大到3072个字节。
    2024-06-08 18:06:35
    赞同 1 展开评论