updated mysql install process

This commit is contained in:
Ken Johnson 2020-11-02 14:06:09 -08:00
parent 0560d10b41
commit a3a6adf783
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ else
# Configure mysql # Configure mysql
mysql -u root <<-EOF mysql -u root <<-EOF
UPDATE mysql.user SET Password=PASSWORD('${PASS}') WHERE User='root'; ALTER USER 'root'@'localhost' IDENTIFIED BY '${PASS}';
DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1'); 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.user WHERE User='';
DELETE FROM mysql.db WHERE Db='test' OR Db='test_%'; DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';