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

10.3.4 MySQLConnectionPool.set_config() Method



This method sets the configuration parameters for connections in the pool. Connections requested from the pool after the configuration change use the new parameters. Connections obtained before the change remain unaffected, but when they are closed (returned to the pool) are reopened with the new parameters before being returned by the pool for subsequent connection requests.


  • kwargs: Connection arguments.


dbconfig = {
  "database": "performance_schema",
  "user":     "admin",
  "password": "secret",


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