DEV Community

Vishnu
Vishnu

Posted on

How to Run Postgres Database in cmd/Terminal

Hello programmers, as we know to run database we need a DBMS software, so i am going to tell you all we how to run database in cmd for window or terminal for mac.

let get start

open CMD/Terminal

go to bin folder into database folder and then write code :

psql -h localhost -p 5440 -d database_name -U user_name

-h for host
-p for port
-d for database
-U for user

Run database in window

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