Skip to content

Commit dc720fe

Browse files
authored
Update README.md
1 parent 6b2dca5 commit dc720fe

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ Type in `\q` to exit *psql* as the *postgres* user.
6262

6363
Connect to your database using: `psql -d my_products`
6464

65+
## Database setup on Windows
66+
67+
If you are using windows you can create the database and user from within `psql`.
68+
69+
70+
```
71+
create database my_products;
72+
create role coder login password 'coder123';
73+
grant all privileges on database my_products to coder;
74+
```
75+
76+
## Create the database tables
77+
6578
Execute these SQL commands to create the `categories` and `products` table in your database.
6679

6780
You can copy and paste the script below into psql or your can run the database script inside psql using `\i database.sql`

0 commit comments

Comments
 (0)