Re: [GENERAL] Unable to connect to Postgresql

Поиск
Список
Период
Сортировка
От rob stone
Тема Re: [GENERAL] Unable to connect to Postgresql
Дата
Msg-id 1491776869.7940.4.camel@gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Unable to connect to Postgresql  (John Iliffe <john.iliffe@iliffe.ca>)
Ответы Re: [GENERAL] Unable to connect to Postgresql  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: [GENERAL] Unable to connect to Postgresql  (John Iliffe <john.iliffe@iliffe.ca>)
Список pgsql-general
Hello John,

Just saw this message.


>
> Still set to the default:
>
> #listen_addresses = 'localhost'         # what IP address(es) to
> listen on;
>                                         # comma-separated list of 
> addresses;
>                                         # defaults to 'localhost';
> use '*' 
> for all
>                                         # (change requires restart)
> #port = 5432                            # (change requires restart)
>
> I did change the Unix domain socket directories:
>
> #unix_socket_directories = '/tmp'       # comma-separated list of 
> directories
> unix_socket_directories = '/tmp,/var/pgsql'     # *****changed from
> default
> # 
>
>

Your set-up has Apache, PHP and Postgres all running from the same
machine.
So as far as running from there goes, it is "localhost".
There is no requirement to traverse a network. It is all on the same
physical machine.

Alter your postgresql.conf file and remove the hash so that:-

listen_addresses = 'localhost'

is explicitly defined. Alter pg_hba.conf so that localhost is declared
and let's see what happens.

Cheers,
Rob


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

Предыдущее
От: rob stone
Дата:
Сообщение: Re: [GENERAL] Unable to connect to Postgresql
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] Unable to connect to Postgresql