-
Notifications
You must be signed in to change notification settings - Fork 0
Postgres Database
Mana Azarm edited this page May 25, 2021
·
2 revisions
To set up the DB for the first time, from your bash terminal, navigate to the DB_script folder and run the following command:
psql -h localhost -U postgres simulator-db < DB_create_script.sql
If you run into an issue about not being able to create the DB, from your IDE access the DB_create_script.sql file. Enter -- in front of line 23 in order to comment it out, and save the file. Then:
- from your bash terminal
psql -h localhost -U postgres - within the psql environment, run:
CREATE DATABASE simulator-db - Exit the psql environment
- navigate to the DB_script folder and run the following command:
psql -h localhost -U postgres simulator-db < DB_create_script.sql