mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -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
|
mysqladmin -u root password $mpass
|
||||||
echo -e "[client]\npassword='$mpass'\n" > /root/.my.cnf
|
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
|
# Bind configuration
|
||||||
wget $CHOST/$VERSION/named.conf -O /etc/named.conf
|
wget $CHOST/$VERSION/named.conf -O /etc/named.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue