File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ case "$1" in
2525 fi
2626
2727 logMsg " Starting MySQL backup..."
28- mysqldump --opt --single-transaction --all-databases | bzip2 > " ${BACKUP_DIR} /${BACKUP_MYSQL_FILE} "
28+ mysqldump --opt --single-transaction --events -- all-databases | bzip2 > " ${BACKUP_DIR} /${BACKUP_MYSQL_FILE} "
2929 ;;
3030
3131 # ##################################
Original file line number Diff line number Diff line change 66
77echo " [client]
88host=mysql
9- user=\" $MYSQL_USER \"
10- password=\" $MYSQL_PASSWORD \"
9+ user=\" root \"
10+ password=\" $MYSQL_ROOT_PASSWORD \"
1111
1212[mysql]
1313host=mysql
14- user=\" $MYSQL_USER \"
15- password=\" $MYSQL_PASSWORD \"
14+ user=\" root \"
15+ password=\" $MYSQL_ROOT_PASSWORD \"
1616database=\" $MYSQL_DATABASE \"
1717default-character-set=utf8
1818local-infile=1
@@ -23,7 +23,7 @@ reconnect
2323
2424[mysqldump]
2525host=mysql
26- user=\" $MYSQL_USER \"
27- password=\" $MYSQL_PASSWORD \"
26+ user=\" root \"
27+ password=\" $MYSQL_ROOT_PASSWORD \"
2828
2929" | tee /root/.my.cnf > /home/.my.cnf
You can’t perform that action at this time.
0 commit comments