X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=handlers%2Fmysql;h=02289f1f2618e197c6e64bc59140869a9f1d31fc;hp=a19509bf062545b0192b42db6974d49fa9a5d060;hb=32e13d4c6573fecca4964b1a9f77254823d2e589;hpb=eaddb268492a59cdf5408b97d9340b2a777b1142 diff --git a/handlers/mysql b/handlers/mysql index a19509b..02289f1 100644 --- a/handlers/mysql +++ b/handlers/mysql @@ -75,7 +75,7 @@ fi # 1. setting the user, so that /home/user/.my.cnf is used. # 2. specifying the user and password in the handler config, # which generates a temporary .my.cnf in /root/.my.cnf -# 3. specify the config file with --defaults-file +# 3. specify the config file with --defaults-extra-file # (this option DOESN'T WORK WITH MYSQLHOTCOPY) # @@ -130,16 +130,16 @@ EOF umask $oldmask if [ $usevserver = yes ] then - defaultsfile="--defaults-file=$vhome/.my.cnf" + defaultsfile="--defaults-extra-file=$vhome/.my.cnf" else - defaultsfile="--defaults-file=$mycnf" + defaultsfile="--defaults-extra-file=$mycnf" fi fi # if a user is not set, use $configfile, otherwise use $mycnf if [ "$user" == "" ]; then user=root; - defaultsfile="--defaults-file=$configfile" + defaultsfile="--defaults-extra-file=$configfile" else userset=true; if [ $usevserver = yes ] @@ -160,7 +160,7 @@ else debug "User home set to: $userhome" [ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf" - defaultsfile="--defaults-file=$userhome/.my.cnf" + defaultsfile="--defaults-extra-file=$userhome/.my.cnf" debug "using $defaultsfile" fi