Re: connecting to a remote pq always require a password

Поиск
Список
Период
Сортировка
От Lennin Caro
Тема Re: connecting to a remote pq always require a password
Дата
Msg-id 310384.41095.qm@web59512.mail.ac4.yahoo.com
обсуждение исходный текст
Ответ на connecting to a remote pq always require a password  (David Shen <davidshen84@googlemail.com>)
Список pgsql-general


--- On Thu, 6/18/09, David Shen <davidshen84@googlemail.com> wrote:

> From: David Shen <davidshen84@googlemail.com>
> Subject: [GENERAL] connecting to a remote pq always require a password
> To: pgsql-general@postgresql.org
> Date: Thursday, June 18, 2009, 12:11 PM
> 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
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

waht is the ip number of the host machien and the remote machine to try connect

you can pass a password to the string conection

"host=>127.0.0.1 dbname=>mydb user=>myuser password=>mypassword"

maybe the problem is the net direction 127.0.0.x check this






В списке pgsql-general по дате отправления:

Предыдущее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: postgres -- monitor and suggestions
Следующее
От: POST
Дата:
Сообщение: SET TIMEZONE doesn't affect to SELECT statement