MySQueaL Resources

resources for mysql admins and developers who are squealing for help

More Resources

Main Doc Pages
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)

STOP SLAVE Statement

This MySQL statement stops the slave server threads.

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

Syntax

STOP SLAVE [IO_THREAD|SQL_THREAD]

Explanation

This MySQL statement stops the slave server threads on a MySQL server which is running replication. To stop a specific type of slave thread, specify one or both of the thread types. Both may be given—just separate them with a comma. However, the default is to stop both. This MySQL statement requires SUPER privilege. You can start slave threads with the START SLAVE statement—assuming your slave is configured for replication already.

Examples

Here is an example of this MySQL statement in which only the SQL threads are to be stopped:

STOP SLAVE SQL_THREAD;
Return to MySQL Replication page of our MySQL Documentation