这是一个奇怪的问题,我在 Google 中找不到任何提及。
我有时会在包含将文档上传到 AWS S3 的事务中遇到此异常。
Mysql2::Error: Table 'app_name_development.begin' doesn't exist: EXPLAIN BEGIN
通过在环境配置中注释掉这一行来关闭解释可以解决问题:
# config.active_record.auto_explain_threshold_in_seconds = 0.5
我正在运行 MySQL。