Even when the adapter is mysql2 sometimes it's still Mysql::Error like with jruby.