So I’m trying to get the Rails rake db:migrate command to work and just getting the same output each time
“!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql."
After tearing my hair, installing and reinstalling the MySQL 2.8.1 gem goggling for answers for an hour I finally found the answer that helped me. The in the reply from by Hao Zhao, he pointed out that the 2.2.2 version of Rails does not support the MySQL 5.x client!
The solution to this is this:
- Download an older version of the MySQL client library from http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
- Copy the downloaded file to c:\Your Ruby install folder\bin
That’s it! I could go mad right now but I’m too happy to finally have found this.
In my case I didn’t have that file at all, thus the “mysql.rb driver has been removed” warning. !It’s not the gem that is missing, it’s the driver! Bad rails bad!
I hope this can help some others in despair.
Btw my system is a Windows 7 x64 with MySQL 5.1, Rrails 2.3.4 and mysql-2.8.1-x86-mswin32.gem