diff --git a/autotest.sh b/autotest.sh index 6c2a61da0a..0c0d5ba099 100755 --- a/autotest.sh +++ b/autotest.sh @@ -117,7 +117,7 @@ function execute_tests { # drop database if [ "$1" == "mysql" ] ; then - mysql -u $DATABASEUSER -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" || true + mysql -u $DATABASEUSER -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true fi if [ "$1" == "pgsql" ] ; then dropdb -U $DATABASEUSER $DATABASENAME || true