diff --git a/post_install.sh b/post_install.sh index 3908d9e..391453b 100755 --- a/post_install.sh +++ b/post_install.sh @@ -82,7 +82,7 @@ else # Configure mysql mysql -u root <<-EOF -UPDATE mysql.user SET Password=PASSWORD('${PASS}') WHERE User='root'; +ALTER USER 'root'@'localhost' IDENTIFIED BY '${PASS}'; DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1'); DELETE FROM mysql.user WHERE User=''; DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';