I am using pymysql
to query remote Amazon Aurora Db server from my EC2 instances. I am having issue that after a while I start getting exception:
Error Code: 2013. Lost connection to MySQL server during query
The same script when I run locally on my Macbook on a local MySQL then issue does not happen.
How do I sort it out?