I\'m trying to build a Rails app around a pre-existing MySQL database. I created the rails project, set up the database.yml file properly and created one model, User, to cor
Just had the same issue. Narrowed it to being a MySQL related issue since it was happening only in staging environment (MySQL) and not in the developpment one (sqlite3). Fixed it by upgrading the mysql2
from version 0.2.7 to 0.3.11.
I had similar problem with MySQL after upgrading to rails 3.2.2.
This is what I did to fix it.
rvm gem install mysql2
In GemFile remove old MySQL gem and add - gem ‘mysql2'
bundle install
bundle update activerecord-mysql2-adapter
bundle update mysql2
then restart your rails server.