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


I am getting this error on Rails 2.0.2 with MySql 5.0.27 on XP

I thought it was a problem with the old mysql ruby drivers that was
fixed using the win32 gem.

But now it has come back when I upgraded to InstantRails 2 which has
the above versions shipped with it.

Does anybody have any idea what the problem is?

I may have to go back to my previous setup which was working fine!


Hi ,
I don't know exactly what error you are getting
one reason may be because of new default database with rails 2.0.2.
Earlier the default database was Mysql but now it is Sqlite

So try using rails -d mysql railsappname
while creating your rails project it will change your default db back
to mysql