Skip to content

Commit

Permalink
fix: fix taskfile mysql (#176)
Browse files Browse the repository at this point in the history
* fix: fix taskfile mysql

* fix: undo change

* fix: taskfile mysql dirty db issue
  • Loading branch information
nhdzhra authored Nov 18, 2024
1 parent dbe4ebd commit 79bcfe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/tools/taskfile/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ tasks:
sh: make get-app-name
cmds:
- |
mysql -h ${LOGIN_DB_HOST} -u root -p${LOGIN_DB_PASSWORD} -e "CREATE DATABASE IF NOT EXISTS ${APP_NAME}_${DB_NAME};
mysql -h ${LOGIN_DB_HOST} -u root -p${LOGIN_DB_PASSWORD} -e "DROP DATABASE IF EXISTS ${APP_NAME}_${DB_NAME};
CREATE DATABASE ${APP_NAME}_${DB_NAME};
CREATE USER IF NOT EXISTS '${APP_NAME}'@'%' IDENTIFIED BY '${DB_DEV_PASSWORD}';
GRANT ALL PRIVILEGES ON ${APP_NAME}_${DB_NAME}.* TO '${APP_NAME}'@'%';"
Expand Down

0 comments on commit 79bcfe5

Please sign in to comment.