title: How to check the status of a mysql connection in python?
body: <p>I am using pymysql to connect to a database. I am new to database operations. Is there a status code that I can use to check if the database is open/alive, something like db.status. </p>