File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 33# (1) Set up all the mysqldump variables
44FILE=%%FILE%%
55DBSERVER=%%SERVER%%
6+ PORT=%%PORT%%
67DATABASE=%%DATABASE%%
78USER=%%USER%%
89PASS=%%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.
2627mysqldump --routines --triggers --single-transaction --user=${USER} --password=${PASS} --databases ${DATABASE} > ${OUTPUT}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ set USER=%%USER%%
77set PASS=%%PASS%%
88set FILE=%%FILE%%
99set CACHEPATH=%%CACHEPATH%%
10+ REM set PORT=%%PORT%%
1011
1112REM Fix trailing slash in cache path
1213set lastchar=%CACHEPATH%:~ -1%
You can’t perform that action at this time.
0 commit comments