And again
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
#!/bin/bash
|
mysql -e "UPDATE mysql.user SET authentication_string=PASSWORD('{input_password_here}') WHERE User='root';"
|
||||||
mysql -u root -p -e /scripts/mysql_secure_install_equivalent.sql
|
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;"
|
||||||
Reference in New Issue
Block a user