[Ruby] Active Record looses connection to mySQL
Daevid Vincent
daevid at daevid.com
Fri May 11 21:40:55 PDT 2007
> -----Original Message-----
> From: ruby-bounces at zenspider.com
> [mailto:ruby-bounces at zenspider.com] On Behalf Of Ryan Davis
> Sent: Friday, May 11, 2007 8:23 PM
> To: Seattle Ruby Brigade!
> Subject: Re: [Ruby] Active Record looses connection to mySQL
>
>
> On May 11, 2007, at 18:18 , Daevid Vincent wrote:
>
> > It seems that after some amount of time
> > (not really sure the duration, more than an hour, less than a day),
> > my service just shits the bed because it looses connection to mySQL.
> > mySQL mind you is perfectly happy and hasn't done anything wrong,
> > and all my PHP pages work fantastic.
> >
> > If I restart my ruby application, it runs perfect... until
> > AR times out again.
> >
> > It's extremely frustrating.
> > Anyone know anything about this?
> > Is it even a known issue that is to be addressed?
> > Is there a work-around/patch?
>
> I'd put a dollar down that you're _using_ the mysql driver
> that comes with rails, not the binary one.
...a glimmer of hope!
How can I tell?
(honestly, Evan wrote all this back-end ruby code, so I don't know a whole lot about details, but I'm happy to look up anything or
search for keywords or whatever you need)
I simply did an "emerge -av ruby rails" (long ago, and keep them updated) (this is Gentoo).
In fact, I think I did it while you were around, helping me to learn rails way back at that old coffee shop we used to go to.
Remember when you walked me through a basic scaffold demo?
But I digress...
How do I rectify this?
Thanks Ryan.
d
More information about the Ruby
mailing list