Massyn has asked for the wisdom of the Perl Monks concerning the following question:
#!/fellow/monks.pl
Although I understand what the MySQL server has gone away error means from a mySQL point of view, I would like to know how to resolve it from a Perl DBI point of view. My script works perfectly through CGI, but putting it into mod_perl causes the error if there's no activity for 8 hours. The problem really is that I can't make any changes to mySQL (ISP restrictions, etc), and from what I've seen, Apache::DBI keeps the sessions alive, so obviously DBI still thinks it's alive, but mySQL has dropped the connection already.
Thank you fellow monks.
|\/| _. _ _ ._
| |(_|_>_>\/| |
/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MySQL server has gone away
by liz (Monsignor) on Dec 27, 2003 at 11:12 UTC | |
|
Re: MySQL server has gone away
by sheep (Chaplain) on Dec 27, 2003 at 11:37 UTC | |
|
Re: MySQL server has gone away
by stvn (Monsignor) on Dec 28, 2003 at 03:21 UTC | |
|
Re: MySQL server has gone away
by akis (Novice) on Dec 29, 2003 at 08:42 UTC | |
|
Re: MySQL server has gone away
by Massyn (Hermit) on Dec 31, 2003 at 05:25 UTC |