Update 'installer.sh'

This commit is contained in:
b.waal
2019-09-03 13:06:49 +02:00
parent f0b039e77d
commit 37d97f2a3f

View File

@@ -176,7 +176,6 @@ source /tmp/mysql-8.0.sh
##------------------------------##
# MySQL_Secure_Installation #
##------------------------------##
mysqladmin -u root -p "$password"
mysql -u root -p"$password" -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')"
mysql -u root -p"$password" -e "DELETE FROM mysql.user WHERE User=''"
mysql -u root -p"$password" -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%'"