PDA

View Full Version : FYI - Lost Connection Error with rails + MySQL gem


danmcq
12-28-2006, 05:50 PM
FYI-

To anybody doing rails development on a MacBook, you might run into a problem when running rake commands targeting your rimuhosting MySQL db.

For example, when I ran rake db:schema:load (with the database.yml db host set to my rimuhosting server), I got the following error...


rake aborted!
Mysql::Error: Lost connection to MySQL server during query: CREATE TABLE...

I followed the instructions on the following blog and this fixed the problem.
http://www.railtie.net/articles/2006/09/12/running-rails-on-os-x-with-mysql-5-0-24#comments

FWIW,

Daniel