Can't connect to database

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Can't connect to database

Postby SomeGuy82 » Sat Mar 13, 2010 8:46 am

Hi,

I seem to have a database problem which I can not solve. PT3 was working fine the other day, but then I got this message:
"unable to connect to database: PT3_2009_10_28_220405".
Can't remember what might have caused it, so here are a few facts:
- I had not been playing for about two months before this one time
- My firewall is ZoneAlarm, I can't remember changing anything though the program seems now to "look" different when I open it, I might have updated it but can't remember it
- in ZoneAlarm i gave full authorization to PT3, pg_ctl and postgresql server, did not change anything
- I upgraded to PT3 recently (before or after the problem ? cannot remember)
- This last time I used it I might have shut it down badly (turned off computer before quitting)
- Database management / New/ Create brings out an error window:
"
Unable to create PostgreSQL Database:
PT3_2010_03_13_132342
Reason: Unable to login to database (template1). Reason: FATAL: no pg_hba.conf entry for host "::1", user "postgres", database template1", SSL off
"
Could need a hand... Maybe re-installing postgres and PT3 after removing completely ? But how can I make sure I won't lose my previous history ?
Thanks in advance.
SomeGuy82
 
Posts: 8
Joined: Thu Oct 16, 2008 5:51 pm

Re: Can't connect to database

Postby kraada » Sat Mar 13, 2010 9:47 am

Your database should be intact - click Start --> Programs --> PostgreSQL --> Configuration Files --> Edit pg_hba.conf and scroll to the bottom of the file. There should be a line that looks like this:
#host all all ::1/128 md5

Remove the # sign, save the file, then restart PostgreSQL (Start --> Programs --> PostgreSQL --> Stop Service followed by Start --> Programs --> PostgreSQL --> Start Service) and things should work for you again.

Do you use something like Spybot S&D? I recall it's made strange changes like this in the past (though it hasn't come up in a while).
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Can't connect to database

Postby SomeGuy82 » Sat Mar 13, 2010 10:18 am

You got it right, it seems to be working properly.
And Yes, I do have spybot S&D installed. I haven't launched it recently, but it might still be linked.
Thanks a lot!
SomeGuy82
 
Posts: 8
Joined: Thu Oct 16, 2008 5:51 pm

Re: Can't connect to database

Postby kraada » Sat Mar 13, 2010 10:37 am

You're welcome :)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests