10月6号
An existing master-slave setup is currently using a delayed replication of one hour. The master
has crashed and the slave must be "rolled forward" to provide all the latest datA.
The SHOW SLAVE STATUS indicates these values:
* RELAY_LOG_FILE=hostname-relay-bin.00004
* RELAY_LOG_POS=1383
Which command set would make the slave current?
A. STOP SLAVE; CHANGE MASTER TO MASTER_DELAY=0; RELAY_LOG_FILE 'hostname-relay-
bin.00004', RELAY_LOG_POS = 1383;
B. STOP SLAVE; CHANGE MASTER TO RELAY_LOG_FILE = 'hostname-relay-bin.00004',
RELAY_LOG_POS = 1383;
C. STOP SLAVE; CHANGE MASTER TO MASTER_DELAY=0; START SLAVE;
D. STOP SLAVE; SET GLOBAL master_delay=0; START SLAVE;
解析:这道题考的是主从复制的参数修改,首先要stop,然后要start, MASTER_DELAY 要用change master to 来修改,不能用set来修改
故选择C
Answer: C