don't recreate the mysql user. Assume they are configured correctly

This commit is contained in:
Joshua Hesketh 2013-09-06 16:48:41 +10:00
parent e13932b2ca
commit 055a08be47
2 changed files with 3 additions and 2 deletions

View File

@ -35,3 +35,6 @@ chown turbo-hipster:turbo-hipster /var/log/turbo-hipster
mkdir -p /var/lib/turbo-hipster
chown turbo-hipster:turbo-hipster /var/log/turbo-hipster
mysql -u root -e "create user 'nova'@'localhost' identified by 'tester';"
mysql -u root -e "grant all privileges on nova.* TO 'nova'@'localhost';"

View File

@ -86,8 +86,6 @@ echo "Restoring test database $6"
set -x
mysql -u root -e "drop database $6"
mysql -u root -e "create database $6"
mysql -u root -e "create user '$4'@'localhost' identified by '$5';"
mysql -u root -e "grant all privileges on $6.* TO '$4'@'localhost';"
mysql -u $4 --password=$5 $6 < /$7
set +x