]> arthur.barton.de Git - MkMySqlDump.git/commitdiff
Correctly set password variable fro mysql[_dump]
authorAlexander Barton <alex@barton.de>
Fri, 26 Feb 2016 10:29:17 +0000 (11:29 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 26 Feb 2016 10:29:17 +0000 (11:29 +0100)
bin/mkmysqldump
bin/mkmysqlslave

index 6ed980cdab1a2759b97ed0e66b5039e29dee2e6a..8532607659f997e53ca83eb98767c0d010cd466a 100755 (executable)
@@ -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=$(
index 1804d8d83ef0241514f2f735d263202ee5920798..7985f3f2ae1cf7e766f7e1161612895e70436d54 100755 (executable)
@@ -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=$?