Changes between Version 25 and Version 26 of UsersWikiWinCompileInitdb


Ignore:
Timestamp:
Dec 9, 2009, 7:06:14 AM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiWinCompileInitdb

    v25 v26  
    55
    66 1. Create a windows local user called postgres
    7  1. /c/postgres/bin/initdb -U postgres -D /c/postgres/data -A trust
    8  1. you may want to change the port in the C:/postgres/data/posgresql.conf file (in our case running under 8433 not to conflict with our regular postgres install)
    9  1. Install as service: (From Dos not MingW)  -- note in this case postgres is a windows account and password you specified for the windows account.[[BR]][[BR]]     "c:\postgres\bin\pg_ctl" register -N "pgsql-8.3 test" -D "C:\postgres\data" -U postgres -P "somepassword"[[BR]][[BR]]
    10  1. Go into services panel under windows and start[[BR]][[BR]]
     7
     8 2. /c/postgres/bin/initdb -U postgres -D /c/postgres/data -A trust
     9
     10 3. you may want to change the port in the C:/postgres/data/posgresql.conf file (in our case running under 8433 not to conflict with our regular postgres install)
     11
     12 4. Install as service: (From Dos not MingW)  -- note in this case postgres is a windows account and password you specified for the windows account.[[BR]][[BR]]     "c:\postgres\bin\pg_ctl" register -N "pgsql-8.3 test" -D "C:\postgres\data" -U postgres -P "somepassword"
     13
     14 5. Go into services panel under windows and start[[BR]][[BR]]
    1115  a. If your service does not start - check the Windows Event Viewer[[BR]][[BR]]
    1216  a. You can uninstall the service with:[[BR]][[BR]]   "c:\postgres\bin\pg_ctl" unregister -N "pgsql-8.3 test" (this requires a restart)[[BR]][[BR]]A faster way is to stop the service and then from dos:[[BR]][[BR]]