10bet网址
MySQL连接器/Python开发者指南
相关的文档10bet官方网站 下载本手册

10.4.1池。PooledMySQLConnection构造函数

语法:

PooledMySQLConnection (cnxpool cnx)

此构造函数接受连接池和连接参数,并返回池连接。它是由MySQLConnectionPool类。

参数:

  • cnxpool:一个MySQLConnectionPool实例。

  • cnx:一个MySQLConnection实例。

例子:

PCNX = mysql.connector.pooling。PooledMySQLConnection (cnxpool cnx)