Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ function create_replication_user() {
retry 120 ${mysql} -N -e "RESET REPLICA;"
else
log "INFO" "Replication user exists. Skipping creating new one......."
# Update replication channel password if it has been changed via RotateAuth
retry 120 ${mysql} -N -e "STOP group_replication;"
retry 120 ${mysql} -N -e "CHANGE REPLICATION SOURCE TO SOURCE_USER='repl', SOURCE_PASSWORD='$MYSQL_ROOT_PASSWORD' FOR CHANNEL 'group_replication_recovery';"
retry 120 ${mysql} -N -e "START group_replication;"
fi
touch /scripts/ready.txt
}
Expand Down
Loading