Re: connection error

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Ana Carolina Alonso de Armiño <aalonso(at)uncoma(dot)edu(dot)ar>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: connection error
Date: 2003-10-02 19:45:45
Message-ID: Pine.LNX.4.33.0310021345300.25184-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Thu, 2 Oct 2003, Ana Carolina Alonso de Armiño wrote:

> Hi, i had installed postgress 7.3 in a database server, and php is running
> in an apache web server.
> There are 6 databases. I can access to one of then from a php pages, and
> the system work fine.
> The problem is when I want to access from a php page to another database.
> The conection is failed.
> I had created this database using next comand:
>
> createdb expedientes
>
> And from phppgadmin (2.4.2) I had add privileges to a user. And I do the
> conect from the php page with this user. The do the conection with:
>
> pg_pconnect(" host=one_host dbname=one_dbase user=one_user password=one_pass")

Maybe your settings in pg_hba.conf are limiting that user to one database?

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Ana Carolina Alonso de Armiño 2003-10-02 19:45:59 connection error
Previous Message Sebastien Baudry 2003-10-02 08:54:56 Re: How to call a PL/pgSQL function in a PHP script