From 107a5ac3e0995d53ac67930b3321738803c6fcfe Mon Sep 17 00:00:00 2001 From: Mojib Wali <44528277+mb-wali@users.noreply.github.com> Date: Thu, 8 Apr 2021 12:01:37 +0200 Subject: [PATCH] docs: refactor some commands --- docs/configs/postgresql.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/configs/postgresql.md b/docs/configs/postgresql.md index 14f1019..9e75949 100644 --- a/docs/configs/postgresql.md +++ b/docs/configs/postgresql.md @@ -24,22 +24,22 @@ $ su postgres Create a admin user: ```sql -CREATE USER admin WITH PASSWORD '************'; +CREATE USER 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 @@ -80,5 +80,5 @@ Access the database from one of the configured machines. ```bash -psql -U admin -d repository -h +psql -U USERNAME -d DATABASE -h ```