bundle show

$ bundle show mysql /home/bhas/.rvm/gems/ruby-1.9.2-p136/gems/mysql-2.8.1

but when I run

$ rake db:migrate (in /home/bhas/projects/schapp) rake aborted! no such file to load -- mysql-2.8.1 /home/bhas/projects/schapp/Rakefile:4:in `<top (required)>' (See full trace by running task with --trace)

Please help.

$ bundle show mysql /home/bhas/.rvm/gems/ruby-1.9.2-p136/gems/mysql-2.8.1

but when I run

$ rake db:migrate (in /home/bhas/projects/schapp) rake aborted! no such file to load -- mysql-2.8.1 /home/bhas/projects/schapp/Rakefile:4:in `<top (required)>' (See full trace by running task with --trace)

Could it be that although the mysql gem is present, it can't be loaded because (for example) it can't find a required library? In those situations, you sometimes get a better error message by trying to load the gem from an irb session

Fred

Thanks Fred,

I had created the project using rails new app -d mysql which bydefault added mysql2.

I had changed the Gemfile to use mysql instead of mysql2 but did not change the database.yml file in the config directory.