i experienced this alot `pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')` and i think this change will fix it. https://github.com/prprprus/PyMySQLPool/blob/212110afaaa01f1d0d3faa8fe099ad19f48a8fbe/pymysqlpool/pool.py#L184 change to ` c.ping(reconnect=True)`