Used to check state of connection to the server.
procedure Ping;
The method is used for checking server connection state. Use the Ping method to prevent server from closing connection on exceeding the wait_timeout value of the MySQL server. For this, call the Ping method in intervals smaller than the server wait_timeout value.