MySQL 8.0.40
Source Code Documentation
COM_REFRESH
Warning
As of MySQL 5.7.11, COM_REFRESH is deprecated and will be removed in a future version of MySQL. Instead, use COM_QUERY to execute a FLUSH statement.

A low-level version of several FLUSH ... and RESET ... statements.

Calls REFRESH or FLUSH statements.

Payload
TypeNameDescription
int<1> command 0x07: COM_REFRESH
int<1> sub_command A bitmask of sub-systems to refresh. A combination of the first 8 bits of COM_REFRESH Flags
Returns
ERR_Packet or OK_Packet
See also
dispatch_command, handle_reload_request, mysql_refresh