diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-19 14:29:32 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-19 14:29:32 -0200 |
commit | b70a99a624f177c2ce0aa28dd826ff4c3e1816d0 (patch) | |
tree | 652dcab7a8f36b1bff17e8ab51fb61bd7133bfac /files | |
parent | 855c3ab1df06611cb17fc9728d484233f69c5b1e (diff) | |
download | puppet-mysql-b70a99a624f177c2ce0aa28dd826ff4c3e1816d0.tar.gz puppet-mysql-b70a99a624f177c2ce0aa28dd826ff4c3e1816d0.tar.bz2 |
Using just change_mysql_rootpw
Diffstat (limited to 'files')
-rw-r--r-- | files/setmysqlpass.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/files/setmysqlpass.sh b/files/setmysqlpass.sh deleted file mode 100644 index 586775e..0000000 --- a/files/setmysqlpass.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# Set MySQL password. -# - -CONF="/root/.my.cnf" - -# Check config file -if [ ! -e "$CONF" ]; then - echo "File not found: $CONF" - exit 1 -fi - -# Get password from configuration -passwd="`grep ^'password='` $CONF | cut -d '=' -f 2" - -# Set the password -echo "USE mysql; UPDATE user SET Password=PASSWORD('$passwd') WHERE User='root' AND Host='localhost';" | /usr/bin/mysql -u root |