IT WORKS!!!!!!!!!!!!!!!!!!!!!!... now to clean up.

This commit is contained in:
WilliamMiceli
2019-11-22 23:56:58 -05:00
parent 4891d8cf7c
commit 6f1f9f63ac
2 changed files with 3 additions and 6 deletions

View File

@@ -1,5 +0,0 @@
UPDATE mysql.user SET authentication_string=PASSWORD('Password1234') WHERE User='root';
DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');
DELETE FROM mysql.user WHERE User='';
DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';
FLUSH PRIVILEGES;

View File

@@ -1,7 +1,9 @@
#!/bin/bash
service mysql start
# Perform the equivalent of running `mysql_secure_installation`
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 "DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';"
mysql -e "FLUSH PRIVILEGES;"