Skip to content Skip to sidebar Skip to footer

Sqlalchemy: Lost Connection To Mysql Server During Query

There are a couple of related questions regarding this, but in my case, all those solutions is not working out. Thats why I thought of asking again. I am getting this error while I

Solution 1:

It is turned out to be problem with the tcp_connect_timeout between the application server and the database server. The tcp connect timeout was default of 1 hour and my pool recycle settings was 3 hrs. So anything between 1 and 3 were failing. Posting the answer to help others who might face this later.


Post a Comment for "Sqlalchemy: Lost Connection To Mysql Server During Query"