We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本地调试插件时突然出现报错 ER_TOO_MANY_KEYS: Too many keys specified; max 64 keys allowed
ER_TOO_MANY_KEYS: Too many keys specified; max 64 keys allowed
插件中建一个表,并设置联合索引
ctx.model.extend('test', { id: 'unsigned', test1: 'string', test2: 'string', }, { autoInc: true, unique: [['test1', 'test2']], // 这里使用联合索引 })
然后每次reload插件,查看MySQL的INFORMATION_SCHEMA.KEY_COLUMN_USAGE表,都能观察到新建了索引
INFORMATION_SCHEMA.KEY_COLUMN_USAGE
64次后就会出现以上报错
MySQL 8 koishi 4.12.6 @koishijs/plugin-database-mysql 5.4.4
The text was updated successfully, but these errors were encountered:
刚刚看了下,竟然真的存在这个问题,感觉还挺严重的,希望官方能够尽快修复
Sorry, something went wrong.
8157998
问题应该已经修复,麻烦使用最新版本测试一下。如果仍然不行我会重新开启此 issue。
No branches or pull requests
问题描述
本地调试插件时突然出现报错
ER_TOO_MANY_KEYS: Too many keys specified; max 64 keys allowed
复现过程
插件中建一个表,并设置联合索引
然后每次reload插件,查看MySQL的
INFORMATION_SCHEMA.KEY_COLUMN_USAGE
表,都能观察到新建了索引64次后就会出现以上报错
版本
MySQL 8
koishi 4.12.6
@koishijs/plugin-database-mysql 5.4.4
The text was updated successfully, but these errors were encountered: