- Go to the Postgres installation bin directory, which would be something like
- C:\Program Files\PostgreSQL\9.5\bin
- In the windows explorer path, type "cmd" and press Enter to launch Command Prompt window.
- Command to Stop the Postgres Database Server
- pg_ctl -D "..\data" stop
- Command to Start the Postgres Database Server
- pg_ctl -D "..\data" start
- Command to Restart the Postgres Database Server
- pg_ctl -D "..\data" restart
Note: If you are facing any issues, you need to run the Command Prompt as administrator and use the below command to switch to the Postgres bin directory and then use the above command.
- cd C:\Program Files\PostgreSQL\9.5\bin
No comments:
Feel free to leave a piece of your mind.