4.19. Ping

[<<<] [>>>]

n = mysql::Ping(dbh)

Checks whether or not the connection to the server is working. If it has gone down, an automatic reconnection is attempted.

Clients that remain idle for a long while, to check whether or not the server has closed the connection and reconnect if necessary can use this function.

Returns true if the server is alive and false if an error occurred.


[<<<] [>>>]