Danilo Salmazio
Danilo Salmazio

Reputation: 11

Rake db:migrate error

I'm getting this error when running rake db:migrate

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

Tasks: TOP => db:migrate => environment

Any ideas about it?

Upvotes: 1

Views: 2531

Answers (1)

Ryan Bigg
Ryan Bigg

Reputation: 107728

You will need to add the mysql2 gem to your Gemfile:

gem 'mysql2'

And also use the mysql2 adapter in your config/database.yml:

adapter: mysql2

Upvotes: 3

Related Questions