[Ruby] Active Record looses connection to mySQL

Daevid Vincent daevid at daevid.com
Fri May 11 21:35:47 PDT 2007


I guarantee you the query is fine.
Yes, I've tried it.
Yes it works for a while right after restarting my ruby service (as mentioned).
Same code. Same query. 

> -----Original Message-----
> From: ruby-bounces at zenspider.com 
> [mailto:ruby-bounces at zenspider.com] On Behalf Of Aaron Patterson
> Sent: Friday, May 11, 2007 6:47 PM
> To: Seattle Ruby Brigade!
> Subject: Re: [Ruby] Active Record looses connection to mySQL
> 
> On 5/11/07, Daevid Vincent <daevid at daevid.com> 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.
> 
> 
> >From your logs, it looks as if its lost a connection during 
> the query.  As
> if there is something wrong with the query itself is my 
> guess.  Have you
> tried looking at your mysql logs?  Also, have you tried 
> executing the query
> from the mysql client?
> 
> 
> -- 
> Aaron Patterson
> http://tenderlovemaking.com/
> _______________________________________________
> Ruby at zenspider.com - Seattle.rb non-commercial list
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
> 



More information about the Ruby mailing list