summaryrefslogtreecommitdiff
path: root/files/scripts/Debian/setmysqlpass.sh
diff options
context:
space:
mode:
Diffstat (limited to 'files/scripts/Debian/setmysqlpass.sh')
-rw-r--r--files/scripts/Debian/setmysqlpass.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/scripts/Debian/setmysqlpass.sh b/files/scripts/Debian/setmysqlpass.sh
index 3de2781..aa1b701 100644
--- a/files/scripts/Debian/setmysqlpass.sh
+++ b/files/scripts/Debian/setmysqlpass.sh
@@ -25,7 +25,7 @@ must_have chown
rootpw=$(grep password /root/.my.cnf | sed -e 's/^[^=]*= *\(.*\) */\1/')
-/usr/bin/mysqladmin -uroot --password="${rootpw}" status > /dev/null && echo "Nothing to do as the password already works" && exit 0
+/usr/bin/mysqladmin --defaults-file=/root/.my.cnf status > /dev/null && echo "Nothing to do as the password already works" && exit 0
/etc/init.d/mysql stop