Re: php connection failure

Поиск
Список
Период
Сортировка
От ourdiaspora
Тема Re: php connection failure
Дата
Msg-id N0wXzQROwC6fXhI1USj0_Fo4SOn_gpsCRSl4a2J3Wz6ZDbA6MIIY5kAAQZFoafItjLG-MAdKDnZBtyCYvdW7qn0rfkmyAuX_16MqiZKBO1g=@protonmail.com
обсуждение исходный текст
Ответ на Re: php connection failure  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: php connection failure  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On Wednesday, August 11th, 2021 at 3:09 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:

>
> Is the Web server/PHP app on the same machine as the Postgres server?
>

All programs about this question are installed on a single computer; the intention is to test and learn first on a
localmachine. 

> If it is on the same machine what happens if you do?:
>
> $dbconn = pg_connect("dbname=cpacweb user=cpaca") or die("Could not
>
> connect");
>

Am happy to report that connection looks successful, because the php web page now reports:

"
    Connection status ok
"

Thank you all very much for the help. Hope that other novices benefit too! :)





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

Предыдущее
От: ourdiaspora
Дата:
Сообщение: Re: php connection failure
Следующее
От: Matthias Apitz
Дата:
Сообщение: Re: (13.1) pg_basebackups ./. pg_verifybackup