MySQL Connector/Python Developer Guide

10.3.2 MySQLConnectionPool.add_connection() Method

Syntax:

cnxpool.add_connection(cnx = None)

This method adds a new or existing MySQLConnection to the pool, or raises a PoolError if the pool is full.

Arguments:

Example:

cnxpool.add_connection()    # add new connection to pool
cnxpool.add_connection(cnx) # add existing connection to pool