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 #!/bin/bash
service mysql start service mysql start
mysql_secure_installation << 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');"
y mysql -e "DELETE FROM mysql.user WHERE User='';"
Password1234 mysql -e "DROP DATABASE test;"
Password1234 mysql -e "FLUSH PRIVILEGES;"
y
y
y
y
EOF