immediately throw sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query')
immediately throw sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query') Question: I encountered a very strange issue where I consistently receive the following exception at a fixed point in my test data when using the db.session.execute(‘insert into table_a select * from table_b where xxx’) statement within a loop. sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2013, ‘Lost connection …