MySQL & mod_ruby

J

Jesper Olsen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top