MySQL Connector/Python Developer Guide / ... / Connector/Python API Reference / connection.MySQLConnection Class / MySQLConnection.cmd_ping() Method
Checks whether the connection to the server is working.
This method is not to be used directly. Useping() oris_connected() instead.
Returns a dictionary containing the OK packet information.