Whenever I try to use rake db:schema:load or rake db:migrate, I get keep getting the following error:
The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load — mysql
I already have the mysql gem installed which is version 2.8.1. Am I missing something?
database.yml
development:
adapter: mysql
database: db_development
host: localhost
username: root
password: password
encoding: utf8
socket: /Applications/rubystack/mysql/tmp/mysql.sock
Try installing mysql2 gem
If you are on Rails 3, add
to your Gemfile & run
And change the adapter to mysql2 in your database.yml. I solved many problems with this, might solve yours too.