Sal*_*uto 6 mysql ruby-on-rails heroku cleardb
我在使用 ClearDB mySQL 的 Heroku 上的 Rails 站点上始终收到此错误。
Mysql2::Error: User '123123' has exceeded the 'max_questions' resource
(current value: 18000)
Run Code Online (Sandbox Code Playgroud)
查看日志,正常 ActiveRecord 查找返回异常。例外之一是抱怨模型关注中的范围。
ActiveRecord::StatementInvalid: Mysql2::Error: User '123123'
has exceeded the 'max_questions' resource (current value: 36000): SET
@@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'),
',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0,
@@SESSION.wait_timeout = 2147483
Run Code Online (Sandbox Code Playgroud)
我正在执行Punch 计划。该网站根本没有获得太多流量。每天约 100 次访问。是否有什么我没有在 Rails 或 Heroku 中正确配置以避免此错误?
更新:转移到下一个更高的计划,但仍然得到这些例外。