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)
Replication can be controlled through the SQL interface. Here is the summary of commands. Near each command you will find ``(Slave)'', meaning this command is issued on the slave, or ``Master'', meaning it is issued on the master.
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)Posted by dpk on Tuesday July 23 2002, @10:03am | [Delete] [Edit] |
SQL_LOG_BIN = 0 doesn't work in 3.23.51 - binary
logs continue. Also, the docs on this page only
apply to 4.0.2. There is no SUPER privilege for
3.anything from what I can tell. The privilege for
3.23.x is supposedly PROCESS - but that doesn't
work either.
Posted by ilya on Friday May 17 2002, @6:24am | [Delete] [Edit] |
MySQL ver 3.23.41:
command "SET SQL_LOG_BIN=0" and the subsequent
INSERT DELAYED ... result in the insert going
to the binary log. Are there any work arounds?
Posted by Herve Galligani on Wednesday November 6 2002, @11:50am | [Delete] [Edit] |
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=n doesn't
work but SET SQL_SLAVE_SKIP_COUNTER=n works
Posted by Massimo Ferrario on Wednesday February 26 2003, @8:14am | [Delete] [Edit] |
SHOW BINLOG EVENTS is not working in version 3.23.54-log
mysql> SHOW BINLOG EVENTS;
ERROR 1064: You have an error in your SQL syntax near 'binlog events' at line 1
Is it a 4.0 feature?
Posted by Unreal H on Tuesday March 18 2003, @2:09am | [Delete] [Edit] |
'LOAD TABLE tblname FROM MASTER' must need the tables or the databases SELECT privileges in master