`
m635674608
  • 浏览: 5060864 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Index column size too large. The maximum column size is 767 bytes

 
阅读更多

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

分享到:
评论

相关推荐

    oauth2SQL.zip

    oauth2.0官方sql文件+解决索引字符过长的sql文件,第二个是根据Error : Index column size too large... The maximum column size is 767 bytes的问题修改过的sql文档。并没有修改参数类型。只是改了数据库的一些配置。

    提要:自托管的RSS阅读器-带有Symfony的API-独立的html客户端-Google阅读器替代

    要求 语言 ...数据库 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

    微软内部资料-SQL性能优化5

    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 ...

    OutlookAttachView v2.73

    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 ...

    BUS Hound

    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 ...

    Windows 用 使用 Gogs 建 搭建 Git

    The maximum column size is 767 bytes` 的错误提示。这通常是由于 MySQL 版本高于 5.7 导致的。为了解决这个问题,可以创建数据库时简化 SQL 语句,例如使用以下命令创建数据库 `gogs`:`CREATE DATABASE IF NOT ...

Global site tag (gtag.js) - Google Analytics