From fd3b09e8a0732b7683f2658af656f9ad410065f7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 19 Apr 2016 12:03:51 -0300 Subject: Set root password for ::1 --- templates/setmysqlpass.sh.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/setmysqlpass.sh.erb b/templates/setmysqlpass.sh.erb index d2894db..3205e94 100644 --- a/templates/setmysqlpass.sh.erb +++ b/templates/setmysqlpass.sh.erb @@ -12,5 +12,6 @@ DEFAULTS="/etc/mysql/debian.cnf" UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='localhost'; UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='<%= @fqdn %>'; UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='127.0.0.1'; +UPDATE mysql.user SET Password=PASSWORD('$PASSWORD') WHERE User='root' AND Host='::1'; FLUSH PRIVILEGES; EOF -- cgit v1.2.3