Skip to content

Commit

Permalink
docs: refactor some commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mb-wali authored Apr 8, 2021
1 parent 493b822 commit 107a5ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/configs/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ $ su postgres

Create a admin user:
```sql
CREATE USER admin WITH PASSWORD '************';
CREATE USER <USERNAME> WITH PASSWORD '************';
```

Give the user permissions:
```sql
ALTER USER admin WITH SUPERUSER;
ALTER USER "USERNAME" WITH SUPERUSER;
```

Create Database:
```sql
CREATE database repository;
CREATE database DATABASE_NAME;
```

Grant permissions of database for admin user:
Grant permissions of database for created user:
```sql
GRANT ALL PRIVILEGES ON DATABASE "repository" to admin;
GRANT ALL PRIVILEGES ON DATABASE "DATABASE_NAME" to USER;
```

## Configuration
Expand Down Expand Up @@ -80,5 +80,5 @@ Access the database from one of the configured machines.


```bash
psql -U admin -d repository -h <host ip address>
psql -U USERNAME -d DATABASE -h <host ip address>
```

0 comments on commit 107a5ac

Please sign in to comment.