From a3a6adf783c037ecb6575a5ed3f9205b8a7696fe Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Mon, 2 Nov 2020 14:06:09 -0800 Subject: [PATCH] updated mysql install process --- post_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_%';