1. 程式人生 > >myql 5.7.21 GTID 組復制

myql 5.7.21 GTID 組復制

組復制 實用版

hostname IP 角色 node13 1.1.1.13 master1 node14 1.1.1.14 master2 node15 1.1.1.15 master3
[mysql]
prompt=\\u@\\h:\\d \\R:\\m:\\s>
user=root
password=nihao123,
[mysqld]
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
server_id = 01
gtid_mode = ON
enforce_gtid_consistency = ON
master_info_repository = TABLE
relay_log_info_repository = TABLE
binlog_checksum = NONE
log_slave_updates = ON
log_bin = binlog
binlog_format = ROW
transaction_write_set_extraction = XXHASH64
loose-group_replication_group_name = ‘ce9be252-2b71-11e6-b8f4-00212844f856‘
loose-group_replication_start_on_boot = off
loose-group_replication_local_address = ‘1.1.1.13:33061‘
loose-group_replication_group_seeds = ‘1.1.1.13:33061,1.1.1.14:33061,1.1.1.15:33061‘
loose-group_replication_bootstrap_group = off
loose-group_replication_single_primary_mode=FALSE
loose-group_replication_enforce_update_everywhere_checks= TRUE
slave_preserve_commit_order=on
slave_parallel_type=LOGICAL_CLOCK
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
validate_password_length = 1
validate_password_policy = 0
validate_password_mixed_case_count = 2
group_replication_ip_whitelist = ‘127.0.0.1/32,1.1.1.0/24,2.2.2.0/24‘
[mysql]
prompt=\\u@\\h:\\d \\R:\\m:\\s>
user=root
password=nihao123,
[mysqld]
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
server_id = 02
gtid_mode = ON
enforce_gtid_consistency = ON
master_info_repository = TABLE
relay_log_info_repository = TABLE
binlog_checksum = NONE
log_slave_updates = ON
log_bin = binlog
binlog_format = ROW
transaction_write_set_extraction = XXHASH64
loose-group_replication_group_name = ‘ce9be252-2b71-11e6-b8f4-00212844f856‘
loose-group_replication_start_on_boot = off
loose-group_replication_local_address = ‘1.1.1.14:33061‘
loose-group_replication_group_seeds = ‘1.1.1.13:33061,1.1.1.14:33061,1.1.1.15:33061‘
loose-group_replication_bootstrap_group = off
loose-group_replication_enforce_update_everywhere_checks= TRUE
loose-group_replication_single_primary_mode=FALSE
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
validate_password_length = 1
validate_password_policy = 0
validate_password_mixed_case_count = 2
group_replication_ip_whitelist = ‘127.0.0.1/32,1.1.1.0/24,2.2.2.0/24‘
[mysql]
prompt=\\u@\\h:\\d \\R:\\m:\\s>
user=root
password=nihao123,
[mysqld]
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
server_id = 03
gtid_mode = ON
enforce_gtid_consistency = ON
master_info_repository = TABLE
relay_log_info_repository = TABLE
binlog_checksum = NONE
log_slave_updates = ON
log_bin = binlog
binlog_format = ROW
transaction_write_set_extraction = XXHASH64
loose-group_replication_group_name = ‘ce9be252-2b71-11e6-b8f4-00212844f856‘
loose-group_replication_start_on_boot = off
loose-group_replication_local_address = ‘1.1.1.15:33061‘
loose-group_replication_group_seeds = ‘1.1.1.13:33061,1.1.1.14:33061,1.1.1.15:33061‘
loose-group_replication_bootstrap_group = off
loose-group_replication_enforce_update_everywhere_checks= TRUE
loose-group_replication_single_primary_mode=FALSE
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
validate_password_length = 1
validate_password_policy = 0
validate_password_mixed_case_count = 2
group_replication_ip_whitelist = ‘127.0.0.1/32,1.1.1.0/24,2.2.2.0/24‘
super_read_only = 1

myql 5.7.21 GTID 組復制