I'm using python flask as a backend, running it as a service in the GCP instance. It is working correctly once started the service. But after a day when I try to make an API call it losses its connection with MySQL and shows the following
error mysql.connector.errors.InterfaceError: 2013:
I tried using pymysql and mysql.connector but facing the same error. Is there any way to solve this?