MySQL Forums
Forum List  »  Connector/Python

Beginner's mistake? removeConnections doesn't release the pool connections
Posted by: varshith manchikanti
Date: September 18, 2017 04:24AM

I am using mysql.connector.pooling.MySQLConnectionPool to create a connection pool and before exiting the app, I wanted to release the connections.

So I called mysql.connector.pooling._removeConnections() to release the pool connections but unfortunately, if I check the number of connections using 'show status' on MySQL server, the number remains the same.

What should ideally be done here to release the connections?

Options: ReplyQuote


Subject
Written By
Posted
Beginner's mistake? removeConnections doesn't release the pool connections
September 18, 2017 04:24AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.