(1226, "User '*****' has exceeded the ' max_queries_per_hour' resource (current value: 1000)")

(1226, "User '*****' has exceeded the ' max_queries_per_hour' resource (current value: 1000)")

我的项目在选择和更新时需要大量查询...很长一段时间。 我收到此错误:

MySQLdb._excpetions.OperatioanlError: (1226, "User '*****' has exceeded the 'max_queries_per_hour' resource (current value: 1000)")

有什么办法可以增加最大查询数吗?

来自 MySql docs 运行 查询

ALTER USER 'username'@'localhost' WITH MAX_QUERIES_PER_HOUR 100000;

但我不得不问,你为什么要运行提出这么多问题?