Skip to content

Commit fb6015a

Browse files
authored
Merge pull request #185 from rmueller/main
Fixed missing "-d" to specify the database name
2 parents 7c1792e + e962465 commit fb6015a

File tree

1 file changed

+4
-2
lines changed
  • bootcamp/materials/1-dimensional-data-modeling

1 file changed

+4
-2
lines changed

bootcamp/materials/1-dimensional-data-modeling/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ There are two methods to get Postgres running locally.
4545
- For Mac: Follow this **[tutorial](https://daily-dev-tips.com/posts/installing-postgresql-on-a-mac-with-homebrew/)** (Homebrew is really nice for installing on Mac)
4646
- For Windows: Follow this **[tutorial](https://www.sqlshack.com/how-to-install-postgresql-on-windows/)**
4747
2. Run this command after replacing **`<computer-username>`** with your computer's username:
48-
48+
4949
```bash
50-
pg_restore -U <computer-username> postgres data.dump
50+
pg_restore -U <computer-username> -d postgres data.dump
5151
```
52+
53+
If you have any issue, the syntax is `pg_restore -U [username] -d [database_name] -h [host] -p [port] [backup_file]`
5254
5355
3. Set up DataGrip, DBeaver, or your VS Code extension to point at your locally running Postgres instance.
5456
4. Have fun querying!

0 commit comments

Comments
 (0)