Skip to content

Commit

Permalink
Add set-gtid-purged arg
Browse files Browse the repository at this point in the history
  • Loading branch information
krobison10 authored Feb 29, 2024
1 parent 047b5b0 commit bd9d60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
pwd=${{ inputs.password }};
db=${{ inputs.database }};
echo "Connecting to DB"
mysqldump --defaults-extra-file=<(printf '[client]\nuser = %s\npassword = %s\nhost = %s' $user $pwd $host) -d --skip-add-drop-table --skip-add-drop-database $db | sed -e 's/AUTO_INCREMENT=[[:digit:]]* //' | sed -e 's/Host: .* //' | sed -e 's/-- Dump completed on .*//' > ${{ inputs.file }}
mysqldump --defaults-extra-file=<(printf '[client]\nuser = %s\npassword = %s\nhost = %s' $user $pwd $host) -d --skip-add-drop-table --set-gtid-purged=OFF --skip-add-drop-database $db | sed -e 's/AUTO_INCREMENT=[[:digit:]]* //' | sed -e 's/Host: .* //' | sed -e 's/-- Dump completed on .*//' > ${{ inputs.file }}
if [[ $? -ne 0 ]]; then
echo >&2 "SQL error"
exit 1
Expand Down

0 comments on commit bd9d60c

Please sign in to comment.