libmysql.dll error with Rails 2.1 on InstantRails
Today, I was playing with Rails 2.1 on Windows and thought about trying InstantRails. I have successfully created a new Rails app but when tried rake db:migrate, I got an error saying that libmysql.dll cannot be loaded.

After some googling I found out the problem. For some reason, as documented here, starting with MySQL 5.0.41, libmysql.dll cannot be dynamically loaded on Windows.
The solution is as simple as copying the libmysql.dll file from InstantRails\mysql\bin to InstantRails\ruby\bin.
Don't forget to restart MySql server. That's it!
Did you like this article? Bookmark it:
Related Articles
- Installing Mephisto 0.8.2 on Rails 2.2.2
- Upgrading InstantRails to Rails 2.2 on Windows
- Running Aptana/Eclipse and InstantRails from a USB Drive
- Thinking Sphinx in Arabic/Unicode
- Thinking Sphinx on Windows








jaishu
March 4th, 2009 - 08:15 AM
how can i connect to mysqlFront in InstantRails
jaishu
March 4th, 2009 - 08:18 AM
how c--------------------------- Error --------------------------- Cannot connect to MySQL Server on "localhost"! --------------------------- OK --------------------------- an i connect to mysqlFront in InstantRails