Skip to content

Installing the mysql gem under windows 7

This one is a note so that I don’t have to struggle again:

The mysql client that ships with the latest mysql doesn’t play nice with the mysql gem. Even after gem install mysql you still get the annoying error that says

!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql

Well the trick to fix this is simple. Download the old libmysql.dll from here and move it into the bin/ directory of your ruby installation and restart the mysql service.

One Comment

  1. manish nautiyal

    thank you for this article. It help me. I am mad for not running mysql in window 7 but you help me.

    Thank you so much.

    Posted on 03-Aug-10 at 21:13 | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*