From f6e6c5983779bf46da0f904b3e4075ec83f3a8a1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 29 Apr 2021 22:15:32 -0700 Subject: [PATCH] * Fixing privileges issue in db user --- scripts/build-db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-db.sh b/scripts/build-db.sh index 19a6fd8..42d30b1 100644 --- a/scripts/build-db.sh +++ b/scripts/build-db.sh @@ -57,7 +57,7 @@ mysql -e "CREATE USER '$DATABASE_USER'@'$DATABASE_HOST' IDENTIFIED BY '$DATABASE # Yet another reason to not use this in prod to setup you're database mysql -e "CREATE DATABASE $DATABASE_NAME" \ >> $migration_logs 2>&1 -mysql -e "GRANT ALL PRIVILEGES ON '$DATABASE_NAME'.* TO '$DATABASE_USER'@'$DATABASE_HOST';" \ +mysql -e "GRANT ALL PRIVILEGES ON $DATABASE_NAME.* TO '$DATABASE_USER'@'$DATABASE_HOST';" \ >> $migration_logs 2>&1 # First we'll setup the databse that we want to use