From ab09d1459d51d8831f54eba68942c4bd2abb72ab Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 6 Jun 2013 08:28:20 +0300 Subject: [PATCH] remove mysql record without password --- install/vst-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/vst-install.sh b/install/vst-install.sh index 4a9fe94d9..1d2aca60c 100644 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -533,6 +533,7 @@ echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf mysql -e "DELETE FROM mysql.user WHERE User=''" mysql -e "DROP DATABASE test" mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'" +mysql -e "DELETE FROM mysql.user WHERE user='' or password='';" mysql -e "FLUSH PRIVILEGES" # Bind configuration