DEV Community

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

Posted on

2 1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay