START SLAVE
(slave)
STOP SLAVE
(slave)
SET SQL_LOG_BIN=0|1
(master)
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=n
(slave)
RESET MASTER
(master)
RESET SLAVE
(slave)
LOAD TABLE tblname FROM MASTER
(slave)
LOAD DATA FROM MASTER
(slave)
CHANGE MASTER TO master_def_list
(slave)
MASTER_POS_WAIT()
(slave)
SHOW MASTER STATUS
(master)
SHOW SLAVE HOSTS
(master)
SHOW SLAVE STATUS
(slave)
SHOW MASTER LOGS
(master)
SHOW BINLOG EVENTS
(master)
PURGE MASTER LOGS
(master)
START SLAVE
(slave)
Starts the slave threads. Was called SLAVE START
in MySQL 3.23.
As of MySQL 4.0.2, you can add IO_THREAD
or SQL_THREAD
options to the statement to start only the I/O thread or the SQL thread.
The I/O thread reads queries from the master server and stores them in the
relay log. The SQL thread reads the relay log and executes the
queries.
Note that if START SLAVE
succeeds in starting the slave threads it
will return without any error. But even in that case it might be that slave
threads start and then later stop (because they don't manage to
connect to the master or read his binlogs or any other
problem). START SLAVE
will not warn you about this, you have to
check your slave's `.err' file for error messages generated by
the slave threads, or check that these are running fine with SHOW
SLAVE STATUS
.