Syntactic Confectionery Delight | |
PerlMonks |
Re^2: interrupting a daemonby tachyon (Chancellor) |
on Oct 23, 2004 at 22:15 UTC ( [id://401896]=note: print w/replies, xml ) | Need Help?? |
By default MySQL will *do the right thing* very slowly. It will actually close an inactive connection after 8 hours. Given that by default there are only 100 connections available it is quite easy to use them all up if you do not do a clean disconnect. You set the values in my.cnf BTW.
Cleanup is simple. All you need is an END block, ideally placed immediately after the connect (so you know it is there).
cheers tachyon
In Section
Seekers of Perl Wisdom
|
|