title: Query to check if MySQL database is connected
body: <p>I am wondering if there is a best practice or standard query used to check if a MySQL database is still connected?</p>
  <p>I was originally thinking of performing a simple search in one of my tables, which will confirm if the database is still there. Just wondering if there is a better approach.</p>