Skip to content

Commit

Permalink
add default character fore backup data
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirocow committed Mar 21, 2016
1 parent 0586125 commit 6cd7eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ backup()
f_log "Exclude data from table $TABLE"
mysqldump --defaults-file=$CONFIG_FILE --no-data --add-drop-table --tab=$DST/$DATABASE/ $DATABASE $TABLE 2>> $DST/$DATABASE/error.log
else
mysqldump --defaults-file=$CONFIG_FILE --add-drop-table --quick --tab=$DST/$DATABASE/ $DATABASE $TABLE 2>> $DST/$DATABASE/error.log
mysqldump --defaults-file=$CONFIG_FILE --default-character-set=utf8 --add-drop-table --quick --tab=$DST/$DATABASE/ $DATABASE $TABLE 2>> $DST/$DATABASE/error.log
fi

if [ -f "$DST/$DATABASE/$TABLE.sql" ]; then
Expand Down

0 comments on commit 6cd7eb5

Please sign in to comment.