diff --git a/scripts/reset-test-db.sh b/scripts/reset-test-db.sh index f1748ca54b..575c578c94 100755 --- a/scripts/reset-test-db.sh +++ b/scripts/reset-test-db.sh @@ -24,6 +24,9 @@ DB_CACHE_DIR="common/test/db_cache" +# Ensure the test database exists. +echo "CREATE DATABASE IF NOT EXISTS edxtest;" | mysql -u root + # Clear out the test database ./manage.py lms --settings bok_choy reset_db --traceback --noinput