MySQL Connector/Python Developer Guide / ... / Connector/Python API Reference / connection.MySQLConnection Class / connection.MySQLConnection() Constructor
Syntax:
cnx = MySQLConnection(**kwargs) TheMySQLConnection constructor initializes the attributes and when at least one argument is passed, it tries to connect to the MySQL server.
For a complete list of arguments, seeSection 7.1, “Connector/Python Connection Arguments”.