[Ruby] Active Record looses connection to mySQL
Corey Jewett
ml at syntheticplayground.com
Fri May 11 21:52:37 PDT 2007
sudo gem install mysql -- --with-mysql-
dir=<path_to_dir_containing_libmysqlclient*>
Something like that.
If you just want to know if it's there then just do a gem list.
Corey
On May 11, 2007, at 9:40 PM, Daevid Vincent wrote:
>> -----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
>
> _______________________________________________
> 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