DBZ-7049 Use RSA auth for replica
This commit is contained in:
parent
5649d1e55c
commit
dac968cdd1
@ -15,7 +15,7 @@ GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT, LOC
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'mysqlreplica'@'%';
|
||||
|
||||
-- Start the GTID-based replication ...
|
||||
CHANGE MASTER TO MASTER_HOST='database-gtids', MASTER_PORT=3306, MASTER_USER='replicator', MASTER_PASSWORD = 'replpass', MASTER_AUTO_POSITION=1;
|
||||
CHANGE REPLICATION SOURCE TO SOURCE_HOST='database-gtids', SOURCE_PORT=3306, SOURCE_USER='replicator', SOURCE_PASSWORD = 'replpass', SOURCE_AUTO_POSITION=1, GET_SOURCE_PUBLIC_KEY=1;
|
||||
|
||||
-- And start the replica ...
|
||||
START SLAVE;
|
||||
|
@ -103,5 +103,6 @@ binlog_expire_logs_seconds = 259200
|
||||
gtid_mode = on
|
||||
enforce_gtid_consistency = on
|
||||
|
||||
default_authentication_plugin = mysql_native_password
|
||||
default_authentication_plugin = caching_sha2_password
|
||||
caching_sha2_password_auto_generate_rsa_keys = on
|
||||
binlog_expire_logs_seconds = 259200
|
||||
|
Loading…
Reference in New Issue
Block a user