From 8e2d7942641d88dc9c21ccee61c41a16a27b9f89 Mon Sep 17 00:00:00 2001 From: Ben Patterson Date: Wed, 12 Nov 2014 22:11:56 -0500 Subject: [PATCH] Improve compatibility with additional mysql installations. Some mysql debian packages do not grant mysql user as many permissions, and we need to add them. --- scripts/reset-test-db.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/reset-test-db.sh b/scripts/reset-test-db.sh index 42d8d69e8d..b224059028 100755 --- a/scripts/reset-test-db.sh +++ b/scripts/reset-test-db.sh @@ -26,6 +26,7 @@ DB_CACHE_DIR="common/test/db_cache" # Ensure the test database exists. echo "CREATE DATABASE IF NOT EXISTS test;" | mysql -u root +echo "GRANT ALL ON test.* TO mysql@localhost" | mysql -u root # Clear out the test database ./manage.py lms --settings bok_choy reset_db --traceback --noinput