mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
mysql_secure_installation
This commit is contained in:
parent
bb4ac2f115
commit
89dbc7a8d7
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue