Skip to content

Commit 9c81375

Browse files
committed
Implement MYSQL_PORT
1 parent c75d220 commit 9c81375

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515
- Added unit tests
1616
- Updated .gitignore
1717
- Bug fix (no views)
18-
19-
### Will be done
20-
- Skipping users & grants
18+
- Added option `SKIP_OP`
19+
- Added option `MYSQL_PORT`
2120

2221

2322
## [1.0.0] - 2018-04-07

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ BACKUP_DIR=/sql_backup
7777
MYSQL_HOST=localhost
7878
MYSQL_USER=root
7979
MYSQL_PASS=root
80+
MYSQL_PORT=3306
8081
SKIP_DATABASES=mysql,sys,information_schema,performance_schema,phpmyadmin
8182
SKIP_OP=users,grants
8283
```
@@ -96,4 +97,4 @@ SKIP_OP=users,grants
9697

9798

9899
## License
99-
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwilliamdes%2Fsql-backup.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fwilliamdes%2Fsql-backup?ref=badge_large)
100+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwilliamdes%2Fsql-backup.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fwilliamdes%2Fsql-backup?ref=badge_large)

backup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ else
6767
IFS=$oldIFS
6868
fi
6969

70-
MYSQL_CONN="-h${MYSQL_HOST} -u${MYSQL_USER}"
70+
MYSQL_CONN="-h${MYSQL_HOST} -u${MYSQL_USER} --port ${MYSQL_PORT}"
7171

7272
if [ ! -z "${MYSQL_PASS}" ]; then
73-
MYSQL_CONN="${MYSQL_CONN} -p${MYSQL_PASS}"
73+
MYSQL_CONN="${MYSQL_CONN} -p${MYSQL_PASS} --port ${MYSQL_PORT}"
7474
fi
7575

7676
if [ -z "${EXPERT_ARGS}" ]; then

0 commit comments

Comments
 (0)