How can I start PostgreSQL on Windows?

Go inside bin folder in C drive where Postgres is installed.
run following command in git bash or Command prompt:

pg_ctl.exe restart -D "<path upto data>"

Ex:

pg_ctl.exe restart -D  "C:\Program Files\PostgreSQL\9.6\data"

Another way:
type “services.msc” in run popup(windows + R).
This will show all services running
Select Postgres service from list and click on start/stop/restart.

Thanks

Leave a Comment