And again

This commit is contained in:
WilliamMiceli
2019-11-22 23:27:38 -05:00
parent 707c74c700
commit 80d082aef4

View File

@@ -1,5 +1,2 @@
mysql -e "UPDATE mysql.user SET authentication_string=PASSWORD('{input_password_here}') WHERE User='root';"
mysql -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');"
mysql -e "DELETE FROM mysql.user WHERE User='';"
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';"
mysql -e "FLUSH PRIVILEGES;"
#!/bin/bash
mysql -h localhost -u root -e /scripts/mysql_secure_install_equivalent.sql