原文:mysql 索引过长1071-max key length is 767 byte

问题 create table: Specified key was too long max key length is bytes 原因 数据库表采用utf 编码,其中varchar 的column进行了唯一键索引 而mysql默认情况下单个列的索引不能超过 位 不同版本可能存在差异 于是utf 字符编码下, byte 超过限制 解决 使用innodb引擎 启用innodb large pre ...

2015-07-01 12:05 1 72378 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM