mysql ocp 1z0-888 每日一题(6)

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

猜你喜欢

转载自blog.csdn.net/AkiFreeman/article/details/85015008