summaryrefslogtreecommitdiff
path: root/files/config/CentOS
diff options
context:
space:
mode:
Diffstat (limited to 'files/config/CentOS')
-rw-r--r--files/config/CentOS/setmysqlpass.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/config/CentOS/setmysqlpass.sh b/files/config/CentOS/setmysqlpass.sh
index ec53584..d762a20 100644
--- a/files/config/CentOS/setmysqlpass.sh
+++ b/files/config/CentOS/setmysqlpass.sh
@@ -4,7 +4,7 @@ test $# -gt 0 || exit 1
/sbin/service mysqld stop
-/usr/libexec/mysqld --skip-grant-tables --user=root --datadir=/var/lib/mysql --log-bin=/var/lib/mysql/mysql-bin &
+/usr/libexec/mysqld --skip-grant-tables --user=root --datadir=/var/lib/mysql/data --log-bin=/var/lib/mysql/mysql-bin &
sleep 5
echo "USE mysql; UPDATE user SET Password=PASSWORD('$1') WHERE User='root' AND Host='localhost';" | mysql -u root
killall mysqld