MySQL Connector/Python Developer Guide

11.8 _mysql_connector.MySQL.close() Method

Syntax:

ccnx.close()

Closes the MySQL connection.