From: Alexander Barton Date: Fri, 26 Feb 2016 10:29:17 +0000 (+0100) Subject: Correctly set password variable fro mysql[_dump] X-Git-Url: https://arthur.barton.de/gitweb/?p=MkMySqlDump.git;a=commitdiff_plain;h=f9f093acd4a3542818ec4c1f0b20fa5a837bad49 Correctly set password variable fro mysql[_dump] --- diff --git a/bin/mkmysqldump b/bin/mkmysqldump index 6ed980c..8532607 100755 --- a/bin/mkmysqldump +++ b/bin/mkmysqldump @@ -120,7 +120,7 @@ echo "Started: $(date)" umask 0077 -[ -n "$MYPW" ] && PWSWITCH="--password='$MYPW'" || PWSWITCH="" +[ -n "$MYPW" ] && PWSWITCH="--password=$MYPW" || PWSWITCH="" echo "Getting list of databases from server ..." DATABASES=$( diff --git a/bin/mkmysqlslave b/bin/mkmysqlslave index 1804d8d..7985f3f 100755 --- a/bin/mkmysqlslave +++ b/bin/mkmysqlslave @@ -76,7 +76,7 @@ fi echo "Initializing MySQL server on \"$MYHOST\" (user \"$MYUSER\") as replication slave:" -[ -n "$MYPW" ] && PWSWITCH="--password='$MYPW'" || PWSWITCH="" +[ -n "$MYPW" ] && PWSWITCH="--password=$MYPW" || PWSWITCH="" echo "Stopping running slave threads ..." mysql -h "$MYHOST" -u "$MYUSER" $PWSWITCH -e 'stop slave'; r=$?