Forum: Ruby on Rails InstantRails Lost connection to MySQL server

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Martin Gamsjaeger (Guest)
on 2006-06-14 10:55
(Received via mailing list)
Hiall,

I just tried out InstantRails version 1.3a. After a virgin install and
filling the fresh mysql db with my app schema, I tried runningthe app
with webrick, only to see the infamous "Lost connection to mysql
server" for every action. What is it that I'm doing wrong? I also have
mysql 5 installed on my machine, but the service is stopped while
experimenting with InstantRails, which ships with mysql 4.1.9

Thx for any tips!

cheers
Martin
Martin Gamsjaeger (Guest)
on 2006-06-14 11:13
(Received via mailing list)
Weird enough the lost connection error does not appear when I run my
app from apache/fcgi ! However, the app feels extremely slow!!! I
would say that every request takes about 5-10 times as long as when
using webrick ... Any ideas?

cheers
Martin
Curt Hibbs (Guest)
on 2006-06-14 17:32
(Received via mailing list)
Martin,

Try installing the new MySQL/Ruby database driver and see if this solves
your problem:

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

Curt
Martin Gamsjaeger (Guest)
on 2006-06-14 21:56
(Received via mailing list)
Hi Curt,

Thx that did the trick! I have my app working on instantrails now with
webrick and with apache. Unfortunately, when running under apache/scgi
my app is TERRIBLY slow! Anyone any ideas why?

cheers
Martin
Curt Hibbs (Guest)
on 2006-06-14 23:30
(Received via mailing list)
I'm forwarding this to the Instant Rails ML -- this has been reported
before.

Curt
David Mitchell (Guest)
on 2006-06-15 01:57
(Received via mailing list)
For what it's worth, I've been running an app under Instant Rails for
approx 2 weeks; it's still lightning quick.  It's running under
Mongrel though - you might want to check it out to see if it's a
better solution for you.

Regards

Dave M.
This topic is locked and can not be replied to.