Re: PHP cann't access to postgres databse

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: PHP cann't access to postgres databse
Дата
Msg-id 4A44B9EF0200002500027FAB@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: PHP cann't access to postgres databse  (Andy Shellam <andy-lists@networkmail.eu>)
Ответы Re: PHP cann't access to postgres databse  (Carol Walter <walterc@indiana.edu>)
Re: PHP cann't access to postgres databse  (Andy Shellam <andy-lists@networkmail.eu>)
Список pgsql-admin
Andy Shellam <andy-lists@networkmail.eu> wrote:

> donghe@caltech.edu wrote:
>> Unable to connect to PostgreSQL server:
>> could not connect to server: Permission denied
>>   Is the server running on host "localhost" and accepting
>>   TCP/IP connections on port 5432? "

> Because the error is "Permission denied", I'm guessing it's
> permissions on the /tmp/.s.PGSQL.5432 socket that will need
> checking?

If it was trying to get that sort of connection, rather than TCP/IP,
the message would be different.  Something like:

# could not connect to server: No such file or directory
#   Is the server running locally and accepting
#   connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

You do have a point on the "Permission denied", though.  If the
problem was where I was suggesting, it would probably say "Connection
refused".  Perhaps some OS security restriction is in play here.

-Kevin

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

Предыдущее
От: Andy Shellam
Дата:
Сообщение: Re: PHP cann't access to postgres databse
Следующее
От: donghe@caltech.edu
Дата:
Сообщение: Re: PHP cann't access to postgres databse