From 89dbc7a8d7f77931e9677543bc02591f4a9d3bf1 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 21 Mar 2013 23:23:59 +0200 Subject: [PATCH] mysql_secure_installation --- install/vst-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/vst-install.sh b/install/vst-install.sh index e81199ed3..e82623cce 100644 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -520,6 +520,10 @@ fi mysqladmin -u root password $mpass 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 "FLUSH PRIVILEGES" # Bind configuration wget $CHOST/$VERSION/named.conf -O /etc/named.conf