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.
In reply to check if DBI is still connected by b888
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |