Version 13 (modified by 15 years ago) ( diff ) | ,
---|
===Initialize PostgreSQL cluster and run as server for compiled version ===
This is still a work in progress Back to windows compile
- Create a windows local user called postgres
- /c/postgres/bin/initdb -U postgres -W -D /c/postgres/data -A trust
- you may want to change the port in the C:/postgres/data/pogstresql.conf file
- Install as service: (From Dos not MingW)
"c:\postgres]bin\pg_ctl" register -N "pgsql-8.3 test" -D "C:\postgres\data" -U postgres -P "somepassword"
- go into services panel under windows and start
- Before you do a make check for PostGIS
— make sure to do an export of PGPORT and other variable to point to the one you are testing (this you do in MingW) http://www.postgresql.org/docs/8.3/interactive/libpq-envars.html
These are only good for current sesson
export PATH="/c/postgres/bin:$PATH"
export PGPORT=5432
export PGUSER=postgres
Note:
See TracWiki
for help on using the wiki.