title: Google Cloud Sql connection close problem
body: <p>I am using MYSql on Google Cloud with Java+Hibernate web app.  While accessing website after some time interval I am getting below exception:</p>
  
  <pre><code>Caused by: java.sql.SQLNonTransientConnectionException: No operations allowed after connection closed.
  </code></pre>
  
  <p>However after refreshing page few times it works again. When I checked logs on Google Cloud I found this repeating error:</p>
  
  <pre><code>A 2019-12-09T00:36:01Z 2019/12/09 00:36:01 ephemeral certificate for instance MYSQL_INSTANCE_NAME will expire soon, refreshing now.
  
  A 2019-12-09T00:36:35Z 2019/12/09 00:36:35 ephemeral certificate for instance MYSQL_INSTANCE_NAME will expire soon, refreshing now.
  </code></pre>
  
  <p>Is this closing the connection then reopening? Could you please let me know how to fix this?</p>