First make sure that your database server can be started.
If it is setup as Windows service it should start automatically, if not you can start it with
pg_ctl
Bring up the Windows Task Manager and check if postgres.exe is listed among running processes.
You may also need to check on pg_hba.conf and postgresql.conf
Both files are located in the database directory (something like C:\Program Files\PostgreSQL\8.1\data)
Follow these links for more information on authentication and connection parameters
http://www.postgresql.org/docs/8.1/s...ntication.html http://www.postgresql.org/docs/8.1/s...onnection.html
If server is running but you still cannot connect look at the database log, see if there are any messages there about rejected connections.
Then post all relevant info, including pg_hba.conf, postgresql.conf, the exact error message you are getting, and describe how exactly you trying to connect (psql at the DOS prompt, PGAdmin, some other application, etc)
Jun 5 '07