updated mysql install process
This commit is contained in:
parent
0560d10b41
commit
a3a6adf783
|
@ -82,7 +82,7 @@ else
|
|||
|
||||
# Configure mysql
|
||||
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='';
|
||||
DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';
|
||||
|
|
Loading…
Reference in New Issue