This is a weird issue that I couldn't find any mention of in Google.
I am sometimes encountering this exception within transactions that include a document upload to AWS S3.
Mysql2::Error: Table 'app_name_development.begin' doesn't exist: EXPLAIN BEGIN
Turning off explains by commenting out this line in the environment config resolves the issue:
# config.active_record.auto_explain_threshold_in_seconds = 0.5
I'm running MySQL.
Your problem is that you are running an older version of rails and it does not have the fixes for non-CRUD based explains: https://github.com/rails/rails/pull/7657
The problem is in activerecord itself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With