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!








Leave a Comment
If you want to post code, do this:
<pre><code class="ruby|javascript|css|html"> your code here </code></pre>