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