Page 1 of 2
Database Error:
Posted:
Thu Oct 16, 2008 2:18 pm
by jmillerdls
Started yesterday, and now happens everytime I open PT (version 2.17.03b).
Unable to connect to the database.
101 - SQLSTATE = 08001
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
I have no clue what this means or how to resolve it. Any help is appreciated.
Re: Database Error:
Posted:
Thu Oct 16, 2008 4:03 pm
by ptrack pat
It means PostgreSQL isn't running. Restart the computer and try it again.
If it still gives the same error, go to the Start menu and select Settings > Control Panel > Administrative Tools > Services
Find PostgreSQL in the list of services. Does it say it's "Started"? If not, try to start it. Does this give an error?
Re: Database Error:
Posted:
Thu Oct 16, 2008 4:08 pm
by jmillerdls
I went there and it was not started. I started it (no error), and proceeded to open PT. Got the exact same error message.
Re: Database Error:
Posted:
Thu Oct 16, 2008 4:11 pm
by ptrack pat
It must have stopped again then. Go back to the services window, is it still started?
Re: Database Error:
Posted:
Thu Oct 16, 2008 4:30 pm
by jmillerdls
You're right. I checked it and it wasn't started again. I started, closed services, then immediately re-opened services and it wasn't started again. This time it gave me a prompt:
The PostgreSQL Database Server 8.2 service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.
So...umm, how do I get it to stay started?
Re: Database Error:
Posted:
Thu Oct 16, 2008 4:34 pm
by ptrack pat
Go to the c:\program files\postgresql\8.x\data folder (where 8.x is the version # of PostgreSQL you are using, i.e. 8.2 or 8.3). Is there a file called postmaster.pid there? If so, delete it and then restart the computer and try it again.
Re: Database Error:
Posted:
Thu Oct 16, 2008 4:40 pm
by jmillerdls
There isn't...there's a postmaster.opts, but not .pid
Re: Database Error:
Posted:
Thu Oct 16, 2008 6:24 pm
by jmillerdls
Any further advice? I'll check again later tonight and tomorrow if needed.
Re: Database Error:
Posted:
Thu Oct 16, 2008 7:25 pm
by ptrack pat
When did you backup the database last?
Re: Database Error:
Posted:
Thu Oct 16, 2008 7:29 pm
by jmillerdls
Not a good question...I don't back it up. Not the end of the world if I have to start a new database...but It would obviously be preferably not to have to do that.