DEV Community

Cover image for How to start with PostgreSQL
Aman Sharma
Aman Sharma

Posted on

How to start with PostgreSQL

You can refer to the below youtube link for better understanding.

https://youtu.be/nuVYte2Mu9Y

Commands are -

sudo -u postgres psql

CREATE DATABASE yourdbname;
CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;

Top comments (0)