原文: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-2026 CODEPRJ.COM