Re: php connection failure - Mailing list pgsql-general

From ourdiaspora
Subject Re: php connection failure
Date
Msg-id N0wXzQROwC6fXhI1USj0_Fo4SOn_gpsCRSl4a2J3Wz6ZDbA6MIIY5kAAQZFoafItjLG-MAdKDnZBtyCYvdW7qn0rfkmyAuX_16MqiZKBO1g=@protonmail.com
Whole thread Raw
In response to Re: php connection failure  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: php connection failure  (Adrian Klaver <adrian.klaver@aklaver.com>)
List 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 by date:

Previous
From: ourdiaspora
Date:
Subject: Re: php connection failure
Next
From: Matthias Apitz
Date:
Subject: Re: (13.1) pg_basebackups ./. pg_verifybackup