khwilo / django-dev-labs

Experimentation on Django features
MIT License
0 stars 0 forks source link

chore: Setup PostgreSQL DB #45

Closed khwilo closed 4 months ago

khwilo commented 4 months ago

Description

Setup PostgreSQL as the database of choice

TODO

Implementation

Create a database:

CREATE DATABASE baraza;

Create a user with a password:

CREATE USER dembe WITH PASSWORD 'ov6$*tPsH&be';

Grant privileges to the database for the created user:

GRANT ALL PRIVILEGES ON DATABASE baraza TO dembe;

Give permissions for user dembe to create new databases

ALTER USER dembe CREATEDB;