RESET Syntax

RESET reset_option [, reset_option] ...

The RESET statement is used to clear the state of various server operations. You must have the RELOAD privilege to execute RESET.

RESET acts as a stronger version of the FLUSH statement. See Section, “FLUSH Syntax”.

The RESET statement causes an implicit commit. See Section 13.3.3, “Statements That Cause an Implicit Commit”.

reset_option can be any of the following:


    Deletes all binary logs listed in the index file, resets the binary log index file to be empty, and creates a new binary log file.


    Removes all query results from the query cache.


    Makes the slave forget its replication position in the master binary logs. Also resets the relay log by deleting any existing relay log files and beginning a new one.

Download this Manual
User Comments
  Posted by Daevid Vincent on December 23, 2009
Just a word of caution, if you're using replication, then DO NOT use the "RESET MASTER" to consolidate your mysql-bin.00000X files.

This page fails to be explicit about mentioning what this page does, nor is there even a link to this critical information:

The correct command is "PURGE BINARY LOGS"

  Posted by Derek Downey on September 4, 2011
It may be obvious, but RESET commands are not written to the Binary Log.

This is particularly pertinent to RESET QUERY CACHE command.
Sign Up Login You must be logged in to post a comment.