MySQL Connector/Python Developer Guide

10.2.15 MySQLConnection.cmd_quit() Method

This method sends a QUIT command to the MySQL server, closing the current connection. Since there is no response from the MySQL server, the packet that was sent is returned.