Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 4.5Mb
PDF (A4) - 4.5Mb


6.9.2.25 MySQLConnection.is_connected() Method

Deprecation

This method has been deprecated as of 9.3.0. Use the property method Section 6.9.2.41, “MySQLConnection.connected Property” instead.

Reports whether the connection to MySQL Server is available.

This method checks whether the connection to MySQL is available using the ping() method, but unlike ping(), is_connected() returns True when the connection is available, False otherwise.