START SLAVE; MASTER_DEMOTE_TO_SLAVE ---------------------- MariaDB starting with 10.10 --------------------------- Used to transition a primary to become a replica. Replaces the old MASTER_USE_GTID=current_pos with a safe alternative by forcing users to set Using_Gtid=Slave_Pos and merging gtid_binlog_pos into gtid_slave_pos once at CHANGE MASTER TO time. If gtid_slave_pos is more recent than gtid_binlog_pos (as in the case of chain replication), the replication state should be preserved. For example: STOP SLAVE; CHANGE MASTER TO MASTER_DEMOTE_TO_SLAVE = 1; START SLAVE; Replication Filter Options -------------------------- Also see Replication filters. IGNORE_SERVER_IDS ----------------- The IGNORE_SERVER_IDS option for CHANGE MASTER can be used to configure a replica to ignore binary log events that originated from certain servers. Filtered binary log events will not get logged to the replica’s relay log, and they will not be applied by the replica. The option's value can be specified by providing a comma-separated list of server_id values. For example: STOP SLAVE; CHANGE MASTER TO IGNORE_SERVER_IDS = (3,5); START SLAVE; If you would like to clear a previously set list, then you can set the value to an empty list. For example: STOP SLAVE; CHANGE MASTER TO IGNORE_SERVER_IDS = (); START SLAVE; DO_DOMAIN_IDS ------------- The DO_DOMAIN_IDS option for CHANGE MASTER can be used to configure a replica to only apply binary log events if the transaction's GTID is in a specific gtid_domain_id value. Filtered binary log events will not get logged to the replica’s relay log, and they will not be applied by the replica. The option's value can be specified by providing a comma-separated list of gtid_domain_id values. Duplicate values are automatically ignored. For example: STOP SLAVE; CHANGE MASTER TO DO_DOMAIN_IDS = (1,2); START SLAVE; If you would like to clear a previously set list, then you can set the value to an empty list. For example: STOP SLAVE; CHANGE MASTER TO DO_DOMAIN_IDS = (); START SLAVE; The DO_DOMAIN_IDS option and the IGNORE_DOMAIN_IDS option cannot both be set to non-empty values at the same time. If you want to set the DO_DOMAIN_IDS option, and the IGNORE_DOMAIN_IDS option was previously set, then you need to clear the value of the IGNORE_DOMAIN_IDS option. For example: STOP SLAVE; CHANGE MASTER TO IGNORE_DOMAIN_IDS = (), DO_DOMAIN_IDS = (1,2); START SLAVE; The DO_DOMAIN_IDS option can only be specified if the replica is replicating in GTID mode. Therefore, the MASTER_USE_GTID option must also be set to some value other than no in order to use this option. IGNORE_DOMAIN_IDS ----------------- The IGNORE_DOMAIN_IDS option for CHANGE MASTER can be used to configure a replica to ignore binary log events if the transaction's GTID is in a specific gtid_domain_id value. Filtered binary log events will not get logged to the replica’s relay log, and they will not be applied by the replica. The option's value can be specified by providing a comma-separated list of gtid_domain_id values. Duplicate values are automatically ignored. For example: STOP SLAVE; CHANGE MASTER TO IGNORE_DOMAIN_IDS = (1,2); START SLAVE; If you would like to clear a previously set list, then you can set the value to an empty list. For example: STOP SLAVE; CHANGE MASTER TO IGNORE_DOMAIN_IDS = (); START SLAVE; The DO_DOMAIN_IDS option and the IGNORE_DOMAIN_IDS option cannot both be set to non-empty values at the same time. If you want to set the IGNORE_DOMAIN_IDS option, and the DO_DOMAIN_IDS option was previously set, then you need to clear the value of the DO_DOMAIN_IDS option. For example: STOP SLAVE; CHANGE MASTER TO DO_DOMAIN_IDS = (), IGNORE_DOMAIN_IDS = (1,2); START SLAVE; The IGNORE_DOMAIN_IDS option can only be specified if the replica is replicating in GTID mode. Therefore, the MASTER_USE_GTID option must also be set to some value other than no in order to use this option. Delayed Replication Options --------------------------- MASTER_DELAY ------------ The MASTER_DELAY option forÝõ¦