第 85 位会员
source=/usr/bin/mysqldump --single-transaction -u${username} -p${password} -h${dbhost} -P${dbport} ${table}> ${datapath}/${dbname}_${backtime}.sql
2>> ${logpath}/mysqllog.log;在多数据库备份时候有问题,需要修改成这样:source=/usr/bin/mysqldump --single-transaction -u${username} -p${password} -h${dbhost} -P${dbport} ${table}> ${datapath}/${table}_${backtime}.sql
2>> ${logpath}/mysqllog.log;