MySQL Connector/Python Developer Guide

10.4.3 PooledMySQLConnection.config() Method

For pooled connections, the config() method raises a PoolError exception. Configuration for pooled connections should be done using the pool object.