Fix mysql setup for Xenial jobs
On xenial with mysql5.7, running "mysql -h localhost" works, but "mysql -h 127.0.0.1" doesn't, so change the setup call accordingly. Change-Id: I5398889b0b7b75e4357bf91aa2c9b5e1594cd368
This commit is contained in:
parent
9b4a7ae952
commit
7b7bce7249
@ -688,7 +688,7 @@
|
||||
DB_PW=openstack_citest
|
||||
sudo -H mysqladmin -u root password $DB_ROOT_PW
|
||||
# note; we remove anonymous users first
|
||||
sudo -H mysql -u root -p$DB_ROOT_PW -h 127.0.0.1 -e "
|
||||
sudo -H mysql -u root -p$DB_ROOT_PW -h localhost -e "
|
||||
DELETE FROM mysql.user WHERE User='';
|
||||
FLUSH PRIVILEGES;
|
||||
GRANT ALL PRIVILEGES ON *.*
|
||||
|
Loading…
Reference in New Issue
Block a user