solve problem "Access denied for user 'root'@'localhost' "pull/37/head
@@ -3,4 +3,4 @@ suites: | |||
- name: <%= ENV['SUITE'] %> | |||
provisioner: | |||
pillars-from-files: | |||
neutron.sls: tests/pillar/<%= ENV['SUITE'] %>.sls | |||
galera.sls: tests/pillar/<%= ENV['SUITE'] %>.sls |
@@ -7,7 +7,7 @@ retries=0 | |||
while [ $counter -gt 0 ] | |||
do | |||
mysql -u root -e"quit" | |||
mysql -u root -e"quit" || mysql -u {{ service.admin.user }} -p{{ service.admin.password }} -e"quit" | |||
if [[ $? -eq 0 ]]; then | |||
echo "Sucessfully connected to the MySQL service ($retries retries)." | |||
exit 0 |