Documentation Home
MySQL Connector/Python Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 0.7Mb
PDF (A4) - 0.7Mb


10.2.16 MySQLConnection.cmd_refresh() Method

Syntax:

cnx.cmd_refresh(options)
Deprecation

This MySQL Server functionality is deprecated.

This method flushes tables or caches, or resets replication server information. The connected user must have theRELOAD privilege.

Theoptions argument should be a bitmask value constructed using constants from theconstants.RefreshOption class.

For a list of options, seeSection 10.11, “constants.RefreshOption Class”.

Example:

>>> from mysql.connector import RefreshOption>>> refresh = RefreshOption.LOG | RefreshOption.THREADS>>> cnx.cmd_refresh(refresh)