DBZ-7049 Use RSA auth for replica

This commit is contained in:
Jiri Pechanec 2024-08-13 10:40:31 +02:00
parent 5649d1e55c
commit dac968cdd1
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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