Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2016-10-24 11:16 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.