Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > MySQL & mod_ruby

Reply
Thread Tools

MySQL & mod_ruby

 
 
Jesper Olsen
Guest
Posts: n/a
 
      09-29-2003
Is it necessary to explicitly call the close method,
on the handle returned my ruby-mysql's real_connect?

I would expect it to happen automatically when the handle goes
out of scope.

However, on a shared MySql server I have from time to time
gotten the error

'real_connect': too many connections (MysqlError).

when trying to connect. Is this just a coincidence?

Jesper
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_ruby, Apache 2, mySQL problem Tony Targonski Ruby 0 04-07-2005 07:24 PM
DBD:mysql doesn't read mysql option file /etc/my.cnf file JL Perl 0 01-28-2005 03:19 AM
rublog and mod_ruby (was: mod_ruby & Apache) Robert McKinnon Ruby 1 03-06-2004 02:29 PM
Ruby DBD MySQL seg faults under mod_ruby matthew c. mead Ruby 2 01-26-2004 03:31 AM
"Pure Python" MySQL module like Net::MySQL Ravi Python 6 07-21-2003 06:53 PM



Advertisments