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)
MASTER_POS_WAIT() (slave)This is not a command but a function, used to ensure that the slave has reached (read and executed up to) a given position in the master's binlog; see section 6.3.6.2 Miscellaneous Functions for a full description.
| Posted by Nathan Tanner on Saturday August 9 2003, @10:13am | [Delete] [Edit] |
NOTE: If you have a cyclical replication setup (ie. more then two servers in a replication chain) do *NOT* rely on 'SHOW MASTER STATUS' on the slave's MASTER for values to use in the master_pos_wait function. This is because if the slave had just finished executing a binlog event that didn't originally come from its own MASTER, the master_log_pos value to be used in this function won't work. I feel this is a bug, but it is apparently designed to work this way. Don't ask me why.