Skip to content

Commit

Permalink
Remove db host option from mysql command
Browse files Browse the repository at this point in the history
since it runs already on localhost
  • Loading branch information
federicaagostini committed Jan 5, 2024
1 parent 4c17248 commit 8465117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compose/assets/scripts/populate-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ load_db_dump(){
dump_file=dump-${VO_NAME}.sql
if [ -f ${SCRIPTS_PREFIX}/${dump_file} ]; then
echo "Loading dump file ${SCRIPTS_PREFIX}/${dump_file} for VO ${VO_NAME}"
mysql -h db -u root -p${MYSQL_ROOT_PASSWORD} -e "create database ${VO_NAME}"
cat ${SCRIPTS_PREFIX}/${dump_file} | mysql -h db -u root -p${MYSQL_ROOT_PASSWORD} ${VO_NAME}
mysql -u root -p${MYSQL_ROOT_PASSWORD} -e "create database ${VO_NAME}"
cat ${SCRIPTS_PREFIX}/${dump_file} | mysql -u root -p${MYSQL_ROOT_PASSWORD} ${VO_NAME}
else
echo "${dump_file} not found"
fi
Expand Down

0 comments on commit 8465117

Please sign in to comment.