mysql_secure_installation

This commit is contained in:
Serghey Rodin
2013-03-21 23:23:59 +02:00
parent bb4ac2f115
commit 89dbc7a8d7

View File

@@ -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