diff --git a/migrate-database.sh b/migrate-database.sh index 4151494b7..5c6209c09 100755 --- a/migrate-database.sh +++ b/migrate-database.sh @@ -153,7 +153,7 @@ if [[ $test_checked -eq 1 ]]; then [ ! -z $MYSQL_USER ] && [ ! -z $MYSQL_PASSWORD ] && [[ (! -z $TEST_MYSQL_SERVICE_HOST) ]] || echo "Missing VARIABLES. Please review your settings !" logger -st $0 "Database Unit Tests... DB=${DB}" if [[ ${DB} == 'Mysql' ]]; then - $sql_connect ${sql_connect_test_host} ${test_mysql_connect_args} -u ${MYSQL_USER} --password=${MYSQL_PASSWORD} -v \ + $sql_connect ${sql_connect_test_host} ${test_mysql_connect_args} -u ${DATABASE_USER} --password=${MYSQL_ROOT_PASSWORD} -v \ -e "CREATE DATABASE IF NOT EXISTS ${TEST_DATABASE_NAME};" \ -e "CREATE DATABASE IF NOT EXISTS ${TEST_DATABASE_NAME}2;" \ -e "CREATE DATABASE IF NOT EXISTS ${TEST_DATABASE_NAME}3;"