b888 has asked for the wisdom of the Perl Monks concerning the following question:
Greetings.
Is there any way to check if connection to mysql db via DBI lib is still active? I'm writing some kind of daemon that keeps opened connection to db. For now i have to check state of every query or perform reconnect after some period of time (+ throw some data away if connection lost before reconnect). Performing open/close operation for each request is not the option, because sometimes script is heavily loaded.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: check if DBI is still connected
by Zaxo (Archbishop) on Oct 06, 2005 at 08:39 UTC | |
by jamroll (Beadle) on Jun 23, 2017 at 18:17 UTC | |
|
Re: check if DBI is still connected
by EvanCarroll (Chaplain) on Oct 06, 2005 at 08:42 UTC | |
|
Re: check if DBI is still connected
by radiantmatrix (Parson) on Oct 06, 2005 at 16:02 UTC | |
|
Re: check if DBI is still connected
by critter (Acolyte) on Oct 06, 2005 at 09:37 UTC | |
by gepebril69 (Scribe) on Apr 05, 2012 at 12:32 UTC | |
by gepebril69 (Scribe) on Apr 05, 2012 at 12:46 UTC | |
|
Re: check if DBI is still connected
by pajout (Curate) on Oct 06, 2005 at 08:57 UTC | |
|
Re: check if DBI is still connected
by marto (Cardinal) on Oct 06, 2005 at 08:43 UTC |