[Err] 1071 - Specified key was too long; max key length is 767 bytes
mysql数据库增加索引超过索引列最高限制。遇到两次了,记录下。
问题描述:创建表或者给表增加索引时,会遇到
CREATE TABLE `test_table` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增主键',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE =...
原创
2020-07-21 16:31:58 ·
1250 阅读 ·
0 评论