We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a154a commit 7f48cf5Copy full SHA for 7f48cf5
scripts/run.sh
@@ -223,6 +223,10 @@ function create_replication_user() {
223
retry 120 ${mysql} -N -e "RESET REPLICA;"
224
else
225
log "INFO" "Replication user exists. Skipping creating new one......."
226
+ # Update replication channel password if it has been changed via RotateAuth
227
+ retry 120 ${mysql} -N -e "STOP group_replication;"
228
+ retry 120 ${mysql} -N -e "CHANGE REPLICATION SOURCE TO SOURCE_USER='repl', SOURCE_PASSWORD='$MYSQL_ROOT_PASSWORD' FOR CHANNEL 'group_replication_recovery';"
229
+ retry 120 ${mysql} -N -e "START group_replication;"
230
fi
231
touch /scripts/ready.txt
232
}
0 commit comments