Changeset 18669


Ignore:
Timestamp:
11/02/16 03:32:52 (8 years ago)
Author:
Daniela Dorner
Message:
fixed syntax of mysqldump for new mysqlversion
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/BackupDatabase.sh

    r17594 r18669  
    5050   echo "writing create commands for database '"$dbname"' to "$command >> $logfile 2>&1
    5151   # commands to create db
    52    if ! mysqldump --host=localhost --database $dbname -u dump --no-data >| $command 2>> $logfile
     52   if ! mysqldump --host=localhost --databases $dbname -u dump --no-data >| $command 2>> $logfile
    5353   then
    5454      printprocesslog "ERROR mysqldump failed for database '"$dbname"'"
     
    6060   echo "writing database '"$dbname"' to "$sqlfile >> $logfile 2>&1
    6161   # mysqldump of full DB
    62    if ! mysqldump --host=localhost --database $dbname -u dump >| $sqlfile 2>> $logfile
     62   if ! mysqldump --host=localhost --databases $dbname -u dump >| $sqlfile 2>> $logfile
    6363   then
    6464      printprocesslog "ERROR mysqldump failed for database '"$dbname"'"
Note: See TracChangeset for help on using the changeset viewer.