|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: MySQL has gone awayby strredwolf (Chaplain) |
| on May 25, 2002 at 19:38 UTC ( #169295=note: print w/ replies, xml ) | Need Help?? |
|
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. --
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||