title: Auto reconnect to MySql after connection lost
body: <p>I have a c# application that uses a MySql database, the problem that after a period of inactivity (8 hours) or when connection to the server where database is host is lost, the connection to the database is closed and database queries cannot be executed. how can i enable the auto reconnect to the database.</p>
  
  <p>Best regards.</p>