pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedStill have problems connecting to Localhost...
2+ messages / 2 participants
[nested] [flat]
* Still have problems connecting to Localhost...
@ 1999-06-08 20:54 Andre Carvalho <dudecoder@yahoo.com>
1999-06-08 21:53 ` RE: [INTERFACES] Still have problems connecting to Localhost... Craig Orsinger <orsingerc@epg-gw1.lewis.army.mil>
0 siblings, 1 reply; 2+ messages in thread
From: Andre Carvalho @ 1999-06-08 20:54 UTC (permalink / raw)
To: pgsql-interfaces
Thanx for solution with "load libpgtcl.so"...
but now I have the other problem when I try to connect to the localhost server (with libpgtcl) I get the answer:
"Connection to database failed
User authentication failed"...
I verified and the server is running with the -i option (it's OK) , and connections from other machines to the server work fine too.
But when try to use libpgtcl to local connections I get errors... Running psql localy works fine too, but with the options:
" psql -h localhost -u template1 "
I received the error:
"Connection to database 'template1' failed
User authentication failed"...
I just can't understand why remote connections work fine and local not... if anyone can help me....
Andre Carvalho...
^ permalink raw reply [nested|flat] 2+ messages in thread
* RE: [INTERFACES] Still have problems connecting to Localhost...
1999-06-08 20:54 Still have problems connecting to Localhost... Andre Carvalho <dudecoder@yahoo.com>
@ 1999-06-08 21:53 ` Craig Orsinger <orsingerc@epg-gw1.lewis.army.mil>
0 siblings, 0 replies; 2+ messages in thread
From: Craig Orsinger @ 1999-06-08 21:53 UTC (permalink / raw)
To: pgsql-interfaces
On 08-Jun-99 Andre Carvalho wrote:
> Thanx for solution with "load libpgtcl.so"...
>
> but now I have the other problem when I try to connect to the localhost
> server (with libpgtcl) I get the answer:
> "Connection to database failed
> User authentication failed"...
>
> I verified and the server is running with the -i option (it's OK) , and
> connections from other machines to the server work fine too.
> But when try to use libpgtcl to local connections I get errors... Running
> psql localy works fine too, but with the options:
> " psql -h localhost -u template1 "
> I received the error:
> "Connection to database 'template1' failed
> User authentication failed"...
>
> I just can't understand why remote connections work fine and local not...
> if anyone can help me....
You didn't mention you'd done this so I'll suggest it - take a look
at your $PGDATA/pg_hba.conf file. There should be a line near the bottom that
looks like this:
host all 127.0.0.1 255.255.255.255 trust
If there's something other than trust in the authentication
field, you should make sure that the method you chose is operating
correctly. Also, make sure that a name lookup of "localhost" yields
the IP address "127.0.0.1".
----------------------------------
Date: 08-Jun-99 Time: 14:48:00
Craig Orsinger (email: <orsingerc@epg.lewis.army.mil>)
Logicon RDA
Bldg. 8B28 "Just another megalomaniac with ideas above his
6th & F Streets station. The Universe is full of them."
Ft. Lewis, WA 98433 - The Doctor
----------------------------------
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-06-08 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-06-08 20:54 Still have problems connecting to Localhost... Andre Carvalho <dudecoder@yahoo.com>
1999-06-08 21:53 ` Craig Orsinger <orsingerc@epg-gw1.lewis.army.mil>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox