Articles → POSTGRESQL → Executing Postgres Command Using Command Prompt

Executing Postgres Command Using Command Prompt






Login Using Command Prompt




  1. Open command prompt.
  2. Go to the bin folder of postgres folder (mainly in c:\program files\)
  3. Write the following command
psql  -d <db_name> -U <user_name>


Picture showing the execution of the postgres command using command prompt
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, October 23, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250