MySQL, Ruby and Windows

June 5th, 2006

Just over the last month or so I started noticing a growing number of MySQL errors when developing Ruby on Rails applications on Windows. The errors would usually say something like so:

Mysql::Error: Lost connection to MySQL server during query

I have seen these in the past and there were some substantial patches that fixed them in Rails core before the 1.0 release, but all of a sudden they are back again.

I think I may have finally found a solution thanks to a post on the rails mailing list.

Just follow the steps on this blog posting to update your MySQL/Ruby driver and you should be all set:

http://www.vandomburg.net/pages/mysql-ruby-windows

Leave a Reply