Created
December 9, 2014 20:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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