Project

General

Profile

Upgrading from 1.0.1 to 2.1.2; activerecord-mysql2-adapter not working

Added by David Kaczynski over 11 years ago

I posted this as a question on serverfault.com earlier on today: http://serverfault.com/questions/448769/upgrading-redmine-activerecord-mysql2-adapter-not-recognized

I'll try to summarize here. Please see the serverfault post for details on the mysql2 installation and outputs for "gem list" and "bundle show".

I am following these instructions to upgrade Redmine on my Ubuntu 12.04.1 server: http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade

When I use "rake db:migrate RAILS_ENV=production", I get the following error:

rake aborted!
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.)

I have used "bundle install" and "gem install activerecord-mysql2-adapter", but I still get the same error message.

Does anyone have any ideas?

Cheers,
David


Replies (1)

RE: Upgrading from 1.0.1 to 2.1.2; activerecord-mysql2-adapter not working - Added by Etienne Massip over 11 years ago

Holger is right on SO, your database adapter name should be "mysql" instead of "mysql2" in your database.yml.

Unless you moved to Ruby 1.9.

    (1-1/1)