oldguo-MySQL 8.0 OCP 原题解析-Q1

2021-05-20  本文已影响0人  MySQL_oldguo

Question 1:

An existing asynchronous replication setup is running MySQL 8.
Which two steps are a part of implementing GTID replication?

A) On the slave, alter the MySQL master connection setting with:
CHANGE MASTER TO MASTER_AUTO_POSITION = 1;

B) Execute this on the slave to enable GTID:
RESET SLAVE; START SLAVE GTID_NEXT = AUTOMATIC;

C) Enable GTID by executing this on the master and the slave:
SET GLOBAL GTID_ENABLED = on;

D) Restart MySQL (master and slave) with these options enabled:
--gtid_mode=ON
--log-bin
--log-slave-updates
--enforce-gtid-consistency

E) On the slave, alter the MySQL master connection setting with:
ALTER channel CHANGE MASTER TO MASTER_AUTO_POSITION = 1;

F) Execute this on the slave to enable GTID:
START SLAVE IO_THREAD WITH GTID;

上一篇 下一篇

猜你喜欢

热点阅读