!!! The bundled mysql.rb driver has been removed from Rails

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:

  1. Download an older version of the MySQL client library from  http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
  2. 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

Print | posted on Monday, January 11, 2010 12:43 AM Filed Under Ruby Rails MySql

Comments

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by Fred on 4/30/2010 10:20 AM

Oh my god. This was great. It worked for me. I am running Windows7 x64 and after installing the latest versions of everything including mysql I was getting this error. After spending hours searching for a solution and re-installing everything, I finally found this post.

Thank you so much.

Fred

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by Dang Hoang Vu on 6/15/2010 7:18 PM

THX SO MUCH :X LOVE U !! I got exactly the same problem, and this solves the damn noisy errors.

Why does rail not support mysql 5.x ? damn it

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by Ricki on 7/7/2010 10:08 PM

THANK YOU!!!!
My life saver, your page should have been the first hit on my google searches, that would have saved me hours of searching.

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by Ruben on 7/8/2010 7:51 PM

Great fix! Thank you!

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by koxp on 7/19/2010 11:09 AM

thank yyou .

Comments

Title: *
Name: *
Email: (never displayed)
Website:
Comment: *  
Please add 8 and 3 and type the answer here: