Documentation Home
MySQL Connector/Python Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 0.6Mb
PDF (A4) - 0.6Mb
EPUB - 136.5Kb
HTML Download (TGZ) - 85.5Kb
HTML Download (Zip) - 103.3Kb


MySQL Connector/Python Developer Guide  /  ...  /  MySQLConnectionPool.get_connection() Method

10.3.3 MySQLConnectionPool.get_connection() Method

Syntax:

cnxpool.get_connection()

This method returns a connection from the pool, or raises a PoolError if no connections are available.

Example:

cnx = cnxpool.get_connection()

User Comments
Sign Up Login You must be logged in to post a comment.