Index column size too large. The maximum column size is 767 bytes
5.6及以上高版本MySQL innodb引擎创建表或者添加索引的时候 报Index column size too large. The maximum column size is 767 bytes
低版本可能是正常的
原因主要是高版本的数据库 为了性能 很多东西做了限制 不合理的字段长度 不合理的查询方式 都会干掉
如果改配置的话 配置改了之后 字符集等也需要设置
而且对innodb性能 应该有所损耗
可以把作为索引的那个column 改小一点 就可以了
确实需要大字段索引可以参考:https://help.aliyun.com/knowledge_detail/41707.html
相关推荐
oauth2.0官方sql文件+解决索引字符过长的sql文件,第二个是根据Error : Index column size too large... The maximum column size is 767 bytes的问题修改过的sql文档。并没有修改参数类型。只是改了数据库的一些配置。
要求 语言 ...数据库 MySQL 5.5.3或更高版本(utf8mb4字符集) 要修复#1709 - Index ... The maximum column size is 767 bytes. #1709 - Index column size too large. The maximum column size is 767 bytes. ,添加My
The number of levels in an index will vary depending on the number of rows in the table and the size of the key column or columns for the index. If you create an index using a large key, fewer ...
o Added option to choose the file size display unit: Bytes, KB, or MB. * Version 2.50 o OutlookAttachView now remembers that last 20 strings you typed in the Extensions List, Excluded Extensions ...
Note: allocating a very large buffer size under Windows 95/98/Me can take a minute. <br>Max Phase <br>Specifies the maximum number of bytes that will be captured on each phase. Example: if Max ...
The maximum column size is 767 bytes` 的错误提示。这通常是由于 MySQL 版本高于 5.7 导致的。为了解决这个问题,可以创建数据库时简化 SQL 语句,例如使用以下命令创建数据库 `gogs`:`CREATE DATABASE IF NOT ...