* Fixing privileges issue in db user

This commit is contained in:
shockrah 2021-04-29 22:15:32 -07:00
parent db67caab96
commit f6e6c59837

View File

@ -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