100th time's the charm?

This commit is contained in:
WilliamMiceli
2019-11-22 23:53:20 -05:00
parent 52864bad21
commit 4891d8cf7c

View File

@@ -1,12 +1,7 @@
#!/bin/bash
service mysql start
mysql_secure_installation << EOF
y
Password1234
Password1234
y
y
y
y
EOF
mysql -e "UPDATE mysql.user SET authentication_string=PASSWORD('Password1234') 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 "DROP DATABASE test;"
mysql -e "FLUSH PRIVILEGES;"