简体   繁体   English

从 5.7 升级到 8 后 MYSQL 索引列大小问题

[英]MYSQL index column size issue after upgrading from from 5.7 to 8

We have a RDS MYSQL with AWS.我们有一个带有 AWS 的 RDS MYSQL。 After upgrading the mysql fro 5.7 to 8, one of our table has been in error.将 mysql 从 5.7 升级到 8 后,我们的一张表出现错误。 "Index column size too large. The maximum size is 767 bytes. “索引列大小太大。最大大小为 767 字节。

We've tried to drop the table, alter, truncate, drop index, all these command responded with the same error above, I'm stuck, please help, Thanks.我们尝试删除表、更改、截断、删除索引,所有这些命令都以上述相同的错误响应,我卡住了,请帮助,谢谢。

That should have been fixed in 5.7 and carried over into 8.0.这应该在 5.7 中修复并延续到 8.0。 Please provide SHOW CREATE TABLE , the exact version numbers, and any other details you can think of.请提供SHOW CREATE TABLE 、确切的版本号以及您能想到的任何其他详细信息。

See this for 5 workarounds: http://mysql.rjweb.org/doc.php/limits#767_limit_in_innodb_indexes有关 5 个解决方法,请参阅此内容: http://mysql.rjweb.org/doc.php/limits#767_limit_in_innodb_indexes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM