Let's see if this now works

This commit is contained in:
WilliamMiceli
2019-11-23 00:19:47 -05:00
parent 6870eb425a
commit 30d39c3559

View File

@@ -2,8 +2,16 @@
service mysql start service mysql start
# Perform the equivalent of running `mysql_secure_installation` # Perform the equivalent of running `mysql_secure_installation`
mysql -e "UPDATE mysql.user SET authentication_string=PASSWORD('Password1234') WHERE User='root';" #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');" #ysql -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 "DELETE FROM mysql.user WHERE User='';"
mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';" #mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';"
mysql -e "FLUSH PRIVILEGES;" #mysql -e "FLUSH PRIVILEGES;"
mysql -u root << EOF
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;
EOF