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
ElasicSearch關聯的mysql表,插入資料時會有以下提示
ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
原因分析:
MySQL的varchar主鍵只支援不超過767個位元組,需要將mysql的字元編碼設定為utf8mb4
輸入以下命令開啟編輯介面
在[mysqld]下加入以下配置:
儲存完重啟後就能插入了。
相關文章
- Index column size too large. The maximum column size is 767 bytes.Index
- 1709 - Index column size too large. The maximum column size is 767 bytes.Index
- [Err] 1709 - Index column size too large. The maximum column size is 767 bytes.Index
- MySQL建立表失敗:Index column size too large. The maximum column size is 767 bytesMySqlIndex
- mysql specified key was too long與Index column size too large. The maximum column size is 767 bytes.MySqlIndex
- MySQL 5.7 到 5.6,出現 Index column size too large. The maximum column size is 767 bytesMySqlIndex
- MySQL資料庫index column size too large. the maximum column size is 767 bytes問題解決MySql資料庫Index
- mysql5.7 資料匯入5.6 Index column size too large. The maximum column size is 767 bytes.MySqlIndex
- mysql Index column size too large 超過767錯誤解決方案(轉)MySqlIndex
- #1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs
- MySQL:Specified key was too long; max key length is 767 bytesMySql
- ORA-28348, encryption column TDE, function indexFunctionIndex
- 解決 Specified key was too long ... 767 bytes 的本質問題
- 高效的SQL(index values與index column values關係?)SQLIndex
- GGS ERROR 160 Bad column indexErrorIndex
- LeetCode-Maximum Size Subarray Sum Equals kLeetCode
- ProTable 報錯Uncaught RangeError: Maximum call stack size exceededError
- zblog顯示Allowed memory size of 6553652 bytes exhauste
- TABLE size (including table,index,lob,lobindex)Index
- js中Uncaught RangeError: Maximum call stack size exceeded錯誤JSError
- Allowed memory size of 134217728 bytes 錯誤解決心得
- Mysql 報Row size too large 65535解決方法MySql
- Row size too large (> 8126)解決辦法
- Error: no such columnError
- java.lang.IndexOutOfBoundsException: Index: 0, Size: 0JavaIndexException
- Oracle 反向索引 where index_column like '%xxx'Oracle索引Index
- 【tomcat8】consider increasing the maximum size of the cacheTomcatIDE
- PHP Fatal error: Allowed memory size of 1610612736 bytesPHPError
- 啟動Amoeba報The stack size specified is too small解決方法
- Column Monitoring
- Unhandled rejection RangeError: Maximum call stack size exceededill install loadIdealTreeErrorIdea
- InnoDB: Error: log file ./ib_logfile0 is of different size 5242880 bytesError
- 偶遇ERROR 1071 (42000): Specified key was too long; max key length is 767 bytesError
- 【Spring】java.lang.IndexOutOfBoundsException: Index: 256, Size: 256SpringJavaIndexException
- Size DatabaseDatabase
- Vue專案中出現:Maximum call stack size exceeded(堆疊溢位)Vue
- Hibernate 註解@Column(nullable = false) 和 @Column(unique=true)NullFalse
- CSS column-spanCSS