Skip to content

Commit 89dbc7a

Browse files
committed
mysql_secure_installation
1 parent bb4ac2f commit 89dbc7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install/vst-install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ fi
520520

521521
mysqladmin -u root password $mpass
522522
echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf
523+
mysql -e "DELETE FROM mysql.user WHERE User=''"
524+
mysql -e "DROP DATABASE test"
525+
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
526+
mysql -e "FLUSH PRIVILEGES"
523527

524528
# Bind configuration
525529
wget $CHOST/$VERSION/named.conf -O /etc/named.conf

0 commit comments

Comments
 (0)