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 abe9464 commit ff896ffCopy full SHA for ff896ff
scripts/run.sh
@@ -222,6 +222,10 @@ function create_replication_user() {
222
retry 120 ${mysql} -N -e "RESET REPLICA;"
223
else
224
log "INFO" "Replication user exists. Skipping creating new one......."
225
+ # Update replication channel password if it has been changed via RotateAuth
226
+ retry 120 ${mysql} -N -e "STOP group_replication;"
227
+ retry 120 ${mysql} -N -e "CHANGE REPLICATION SOURCE TO SOURCE_USER='repl', SOURCE_PASSWORD='$MYSQL_ROOT_PASSWORD' FOR CHANNEL 'group_replication_recovery';"
228
+ retry 120 ${mysql} -N -e "START group_replication;"
229
fi
230
touch /scripts/ready.txt
231
}
0 commit comments