connecting to a remote pq always require a password

From: David Shen <davidshen84(at)googlemail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: connecting to a remote pq always require a password
Date: 2009-06-18 12:11:45
Message-ID: 53e35fd50906180511g2953a478y5e551da643609282@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am trying to use the libpq to connect to my postgresql 8.3 server.
If I use "dbname = mydb", the connection made successfully because I
am using a socket connection. But if I use "host = 127.0.0.1 dbname =
mydb", the error message is "no password supplied".

In the pg_hba.conf file, I even change the host access control to this:
host all all 127.0.0.1/32 trust

but it still does not work. What I missed?

--
Best Regards,
David Shen

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John DeSoi 2009-06-18 13:32:33 Re: connecting to a remote pq always require a password
Previous Message Bill Moran 2009-06-18 11:45:14 Re: Too many postgres instances