0

I want to close MySQL database connection after 50 sec automatically if queries are taking more than 50 sec? Is there any option in python while making connection or any other solution to do that ?

Sunil Garg
  • 14,608
  • 25
  • 132
  • 189

1 Answers1

0

Reference site for python database connection

Look Connection in this site they might explained about timeout for query, you can pass an integer which is in seconds

Pradeep
  • 105
  • 6