某日同事突然找到我说测试环境中有张表无法访问,SELECT、DML 和 DDL 执行均报错ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.。 其实看到 767 这个数字,大家可能会猜想这估计和compact/redundant行格式有关系,后续也确实证实了和这个有点关系。 问题发生了就要想办法处...
ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes. mysql> alter table sky.test engine=innodb; ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes. mysql> check table sky.test ; +---+---+---+---+ | Table |...
在MySQL 5.6中遇到“Index column size too large. The maximum column size is 767 bytes”错误时,通常是因为索引列的长度超过了InnoDB存储引擎的限制。 解决方法 启用innodb_large_prefix参数: MySQL 5.6中,innodb_large_prefix参数默认是关闭的。当启用此参数后,InnoDB支持更大的索引前缀长度,最大可以达到3072字节。
“CREATE INDEX Syntax”. For example, you might hit this limit with acolumn prefixindex of more than 255 characters on aTEXTorVARCHARcolumn, assuming autf8mb3character set and the maximum of 3 bytes for each character. When theinnodb_large_prefixconfiguration option is enabled, the index key ...
某日同事突然找到我说测试环境中有张表无法访问,SELECT、DML 和 DDL 执行均报错ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.。 其实看到 767 这个数字,大家可能会猜想这估计和compact/redundant行格式有关系,后续也确实证实了和这个有点关系。
index column size too large. the maximum column size is 767 bytes 原因: INNODB 引擎,UTF-8,主键字符串 默认最大 767,需要修改 解决方案: 1. 对数据库进行设置 set global innodb_file_format = BARRACUDA set global innodb_large_prefix = ON ...
简介: MySQL 报错 ERROR 1709: Index column size too large 背景 最近同事突然找到我说测试环境中有张表无法访问,SELECT、DML 和 DDL 执行均报错 ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.。 其实看到 767 这个数字,大家可能会猜想这估计和 compact/redundant ...
[ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.] 二、解决 根据文档所述 https://dev.mysql.com/doc/refman/5.6/en/create-index.html Prefix support and lengths of prefixes (where supported) are storage engine dependent. For example, a prefix can be ...
index column size too large. the maximum column size is 767 bytes。 此问题为备份的库索引过长超过限制,目标数据库引擎为INNODB 引擎,编码UTF-8,主键字符串默认最大767,理论上是需要优化备份数据库的,但是在实际环境中如果没办法优化,我们可以通过配置目标数据库来解决这个报错。 解决方案 1、 对数据库进行设...
某日同事突然找到我说测试环境中有张表无法访问,SELECT、DML 和 DDL 执行均报错ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.。 其实看到 767 这个数字,大家可能会猜想这估计和compact/redundant行格式有关系,后续也确实证实了和这个有点关系。