Hi,<br>I have few widgets loading its data from a MySQL database.<br>I create a database connection at the start.<br>If I leave the application open overnight the connection drops out.<br><br>How can I detect if the database connection is still active?.<br>
Calling <br>if db.isOpen():<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logger.debug(&quot;DB is valid&quot;)<br><br>always return valid after the startup, even if network connection is droped.<br>All the queries return invalid but no exception occurs.<br>
<br><br>Regards<br>Anil<br>