I recently had an issue with one of my user-accounts in vista being corrupted and thus forcing me to reinstall vista. Luckily absolutely none of my data was lost, but unfortunately I do have to reinstall Postgres again in order to take what my computer now thinks is just a mound of 0's and 1's and turn it back into an active DB.
Some things about me:
Old DB location: C:/Program Files/Postgresql/8.0
Version: 8.0
Size: ~18GB
PT3 Version: PT3 Beta Build 17
I tried installing the 8.3 version (It came with Build 17), and it successfully linked up with my 8.0 database (It did not give me the "Are you sure you don't want to create a database? We have not detected one on the folder specified" message on install), but I'm getting the same error that effects many people on this forum:
2008/09/09 14:09:46.697: [- Main -][PostgresConnection] Connecting to database: PT3 DB
2008/09/09 14:09:48.690: [- Main -][PostgresConnection (Error)] Unable to login to database (PT3 DB). Reason: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" and accepting TCP/IP connections on port 5432?
20
===================================================
In pgAdmin II I get the following message when attempting manually to connect to the database server:
===================================================
Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
If you encounter this message, please check if the server you're trying to contact is actually running PostgreSQL on the given port. Test if you have network connectivity from your client to the server host using ping or equivalent tools. Is your network / VPN / SSH tunnel / firewall configured correctly?
For security reasons, PostgreSQL does not listen on all available IP addresses on the server machine initially. In order to access the server over the network, you need to enable listening on the address first.
For PostgreSQL servers starting with version 8.0, this is controlled using the "listen_addresses" parameter in the postgresql.conf file. Here, you can enter a list of IP addresses the server should listen on, or simply use '*' to listen on all available IP addresses. For earlier servers (Version 7.3 or 7.4), you'll need to set the "tcpip_socket" parameter to 'true'.
================================================================================================
I have attempted to follow the instructions given in that message to modify the postgresql.conf file, but have had no improvement after having done so.
The postgresql service is actively running on my computer (named: "PostgreSQL Database Server 8.3), and appears to be operating normally.
I will be attempting to fix this on my own for the next few hours (I have a backup 18gb copy of my DB just in case I mess this up), and I will post back here whenever my issue is solved.
Edit: This is what I get when attempting to create a new database from within PT3:
Unable to create PostgreSQL database: PT3_2008_09_09_144658
Reason: Unable to login to database (template1). Reason: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" and accepting TCP/IP connections on port 5432?
