MySQL Connector/Python Developer Guide

11.33 _mysql_connector.MySQL.ping() Method

Syntax:

alive = ccnx.ping()

Returns True or False to indicate whether the connection to the MySQL server is working.