!!! 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 .

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by fur boots on 10/5/2010 3:23 PM

So I’m trying to get the Rails rake db:migrate command to work and just getting the same output each time

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by snow boots for women on 10/15/2010 11:06 AM

That’s it! I could go mad right now but I’m too happy to finally have found this.

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by columbia jackets on 10/17/2010 2:26 PM

So I’m trying to get the Rails rake db:migrate command to work and just getting the same output each time


snow boots | columbia sportswear | columbia sportswear outlet | cheap north face jackets | the north face outlet

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by koxp on 4/17/2011 5:16 PM

THANK YOU . GOOD POST

Gravatar

# re: !!! The bundled mysql.rb driver has been removed from Rails, Posted by James Star on 11/3/2011 11:40 PM

Hello,

I'm using Cygwin on Windows 7, having trouble finding the Ruby/bin folder. Any ideas?

I thought it may be Cygwin/lib/ruby/gems/1.8/bin
or, Cygwin/home/usr/ruby/bin

James

Gravatar

# casinobigshot, Posted by casinobigshot on 11/25/2011 4:38 AM

The topic which you choose for the blog is exceptionally great. Thank you very much.

Comments

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