Skip to content

Commit

Permalink
fix: Added missing variable PORT and placeholder in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
flydev-fr committed Oct 31, 2023
1 parent 431ace1 commit 19dd37e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mysqldump.unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# (1) Set up all the mysqldump variables
FILE=%%FILE%%
DBSERVER=%%SERVER%%
PORT=%%PORT%%
DATABASE=%%DATABASE%%
USER=%%USER%%
PASS=%%PASS%%
Expand All @@ -21,6 +22,6 @@ OUTPUT="${CACHEPATH}${FILE}"
# (3) Do the mysql database backup (dump)
# - to log errors of the dump process to a file, add --log-error=mysqldump_dup_error.log
# (a) Use this command for a remote database. Add other options if need be.
# mysqldump --opt --protocol=TCP --user=${USER} --password=${PASS} --host=${DBSERVER} --port=${PORT} ${DATABASE} ${DATABASE} > ${OUTPUT}
# mysqldump --opt --protocol=TCP --user=${USER} --password=${PASS} --host=${DBSERVER} --port=${PORT} ${DATABASE} > ${OUTPUT}
# (b) Use this command for a database server on localhost. Add other options if need be.
mysqldump --routines --triggers --single-transaction --user=${USER} --password=${PASS} --databases ${DATABASE} > ${OUTPUT}
1 change: 1 addition & 0 deletions scripts/mysqldump.windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set USER=%%USER%%
set PASS=%%PASS%%
set FILE=%%FILE%%
set CACHEPATH=%%CACHEPATH%%
REM set PORT=%%PORT%%

REM Fix trailing slash in cache path
set lastchar=%CACHEPATH%:~-1%
Expand Down

0 comments on commit 19dd37e

Please sign in to comment.