test-setup.sh: address mysql8 compatibility

Change-Id: I0d0759736467292e86b042f1357fa8a65ae50b3b
This commit is contained in:
Salvatore Orlando 2021-06-21 01:30:04 -07:00 committed by Kobi Samoray
parent bcb915de83
commit 2ecf044f72
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ sudo -H mysqladmin -u root password $DB_ROOT_PW
sudo -H mysql -u root -p$DB_ROOT_PW -h localhost -e "
DELETE FROM mysql.user WHERE User='';
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.*
TO '$DB_USER'@'%' identified by '$DB_PW' WITH GRANT OPTION;"
CREATE USER '$DB_USER'@'%' IDENTIFIED BY '$DB_PW';
GRANT ALL PRIVILEGES ON *.* TO '$DB_USER'@'%' WITH GRANT OPTION;"
# Now create our database.
mysql -u $DB_USER -p$DB_PW -h 127.0.0.1 -e "