Name
FLUSH
Synopsis
FLUSH option[, option...]
Flushes or resets various internal processes depending on the
option(s) given. You must have reload privileges
to execute this statement. The option can be any of the following:
HOSTSEmpties the cache table that stores hostname information for clients. This should be used if a client changes IP addresses, or if there are errors related to connecting to the host.
LOGSCloses all of the standard log files and reopens them. This can be used if a log file has changed inode number. If no specific extension has been given to the update log, a new update log will be opened with the extension incremented by one.
PRIVILEGESReloads all of the internal MySQL permissions grant tables. This must be run for any changes to the tables to take effect.
STATUSResets the status variables that keep track of the current state of the server.
TABLESCloses all currently opened tables and flushes any cached data to disk.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access