As long as the MySQL server is actually available, the Cursor class should return a live connection. It uses `conn.ping(True)` to accomplish this for cached connections, and new connections are rare to fail if the configuration is correct and the MySQL server is up.