MySQueaL Resources

resources for mysql admins and developers who are squealing for help

More Resources

Main Doc Pages
Privileges Required
  • RELOAD
Comments
MySQL columns: everywhere I look are tables and columns; life is filled with databases of information to be ordered and grouped. (Ca'Grande, Milan, Italy)

RESET SLAVE Statement

Use this MySQL statement within or after the RESET MASTER statement that sets the binary logging index back to 1.

hits past month: 14 ;  last updated: may 4, 2009 - 2:34am ;  parent: MySQL Replication

Syntax

RESET SLAVE

Explanation

Use this MySQL statement within or after the RESET MASTER statement that sets the binary logging index back to 1 on a server running replication. This MySQL statement will also delete the master.info file, the relay-log.info file, and all of the relay log files on the slave server. It will delete the relay log files regardless of whether the SQL thread has finish executing its contents. A new .info file will be created with the default, start-up values.

Examples

You can run the MASTER and SLAVE options together in a comma-separated list like so:

RESET MASTER, SLAVE;

This is a recommended method for ensuring consistency on MySQL servers running replication.

Return to MySQL Replication page of our MySQL Documentation