MySQL Connector/Python Release Notes
This method tries to send a QUIT
command and
close the socket. It raises no exceptions.
MySQLConnection.close()
is a synonymous
method name and more commonly used.
To shut down the connection without sending a
QUIT
command first, use
shutdown()
.