You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
This commit adds multiple changes to the previos commit
1. Backup Ingestion modifications to remove the operations that are not needed.
2. Create a delphixdb user so that the customers can use that in future for snapshots.
3. Update the code to use the source user from staged_source for future snapshots
4. Not fail if grants cause error. Customer must bring the grants from source db.
5. Made changes to Replication restore-stage.sh to use command_runner.
6. Added new exit codes.
Copy file name to clipboardExpand all lines: src/resources/restore_stage.sh
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -375,16 +375,17 @@ fi
375
375
CMD="${INSTALL_BIN}/mysql ${STAGING_CONN} --connect-expired-password -se \"ALTER USER 'root'@'localhost' IDENTIFIED BY ${STAGINGPASS};UPDATE mysql.user SET authentication_string=PASSWORD(${STAGINGPASS}) where USER='root';FLUSH PRIVILEGES;\""
376
376
CMDFORLOG="${INSTALL_BIN}/mysql ${STAGING_CONN} --connect-expired-password -se \"ALTER USER 'root'@'localhost' IDENTIFIED BY '********';UPDATE mysql.user SET authentication_string=PASSWORD('********') where USER='root';FLUSH PRIVILEGES;\""
377
377
masklog "Final Command to Change Password is : ${CMDFORLOG}"
378
+
command_runner "${CMD}" 5
379
+
380
+
#eval ${CMD} 1>>${DEBUG_LOG} 2>&1
381
+
#return_msg=$(eval ${CMD} 2>&1 1>&2 > /dev/null)
382
+
#return_code=$?
383
+
#log "Return Status for change password: ${return_code}"
384
+
#log "Return message for change password:${return_msg}"
385
+
#if [ $return_code != 0 ]; then
386
+
# terminate "${return_msg}" 5
387
+
#fi
378
388
379
-
#eval ${CMD} 1>>${DEBUG_LOG} 2>&1
380
-
return_msg=$(eval ${CMD}2>&11>&2> /dev/null)
381
-
return_code=$?
382
-
log "Return Status for change password: ${return_code}"
383
-
log "Return message for change password:${return_msg}"
384
-
if [ $return_code!= 0 ];then
385
-
terminate "${return_msg}" 5
386
-
fi
387
-
#
388
389
# Update Staging Connection with supplied password ...
389
390
#
390
391
masklog "Staging Connection Prior to updaging password : ${STAGINGCONN}"
0 commit comments