Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: MySQL has gone away

by strredwolf (Chaplain)
on May 25, 2002 at 19:38 UTC ( #169295=note: print w/ replies, xml ) Need Help??


in reply to MySQL has gone away

You sometimes get this with a heavily loaded SQL server, not just MySQL. If the connection between your script and MySQL gets dropped... well...

What you can do sneakily is abstract it a bit, and if MySQL dies on you, you can catch it, sleep 60, and then try to reconnect silently. If it dies on the reconnect, then you got real trouble you need to die or croak on.

--
$Stalag99{"URL"}="http://stalag99.keenspace.com";


Comment on Re: MySQL has gone away
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://169295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-09-02 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls