Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 4.5Mb
PDF (A4) - 4.5Mb


6.9.2.16 MySQLConnection.cmd_refresh() Method

Syntax:

Press CTRL+C to copy
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 the RELOAD privilege.

The options argument should be a bitmask value constructed using constants from the constants.RefreshOption class.

For a list of options, see Section 6.9.11, “constants.RefreshOption Class”.

Example:

Press CTRL+C to copy
>>> from mysql.connector import RefreshOption >>> refresh = RefreshOption.LOG | RefreshOption.THREADS >>> cnx.cmd_refresh(refresh)