Skip to content

Commit 19dd37e

Browse files
committed
fix: Added missing variable PORT and placeholder in shell scripts
1 parent 431ace1 commit 19dd37e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/mysqldump.unix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# (1) Set up all the mysqldump variables
44
FILE=%%FILE%%
55
DBSERVER=%%SERVER%%
6+
PORT=%%PORT%%
67
DATABASE=%%DATABASE%%
78
USER=%%USER%%
89
PASS=%%PASS%%
@@ -21,6 +22,6 @@ OUTPUT="${CACHEPATH}${FILE}"
2122
# (3) Do the mysql database backup (dump)
2223
# - to log errors of the dump process to a file, add --log-error=mysqldump_dup_error.log
2324
# (a) Use this command for a remote database. Add other options if need be.
24-
# mysqldump --opt --protocol=TCP --user=${USER} --password=${PASS} --host=${DBSERVER} --port=${PORT} ${DATABASE} ${DATABASE} > ${OUTPUT}
25+
# mysqldump --opt --protocol=TCP --user=${USER} --password=${PASS} --host=${DBSERVER} --port=${PORT} ${DATABASE} > ${OUTPUT}
2526
# (b) Use this command for a database server on localhost. Add other options if need be.
2627
mysqldump --routines --triggers --single-transaction --user=${USER} --password=${PASS} --databases ${DATABASE} > ${OUTPUT}

scripts/mysqldump.windows.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set USER=%%USER%%
77
set PASS=%%PASS%%
88
set FILE=%%FILE%%
99
set CACHEPATH=%%CACHEPATH%%
10+
REM set PORT=%%PORT%%
1011

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

0 commit comments

Comments
 (0)