100th time's the charm?
This commit is contained in:
@@ -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
|
|
||||||
Reference in New Issue
Block a user