While creating a Ruby on Rails application for the first time under Windows XP, I ran into a problem.  I usually do Ruby on Rails development on Linux, but I’ve been wanting to do it on my laptop; it runs XP, since I do a lot of .NET development.

When I ran “rake db:create” to create my database, I got the error:

This application has failed to start because libmysql.dll was not found

A quick bit of googling and I found this thread at ruby-forum.com.  Copying libmysql.dll to ruby/bin took care of the problem.