Skip to content

Instantly share code, notes, and snippets.

@rosado
Created December 9, 2014 20:05
Show Gist options
  • Save rosado/5d4ca7221cffbd45302b to your computer and use it in GitHub Desktop.
Save rosado/5d4ca7221cffbd45302b to your computer and use it in GitHub Desktop.
after installing postgres on windows from a zip file, this can be handy
@echo off
if "%1" == init (
bin\initdb -U postgres -A password -E utf8 -W -D data
)
if "%1" == "start" (
"bin\pg_ctl" -D "data" -l log\pgsql.log start
)
if "%1" == "stop" (
"bin\pg_ctl" -D "data" -l log\pgsql.log stop
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment