pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Ana Carolina Alonso de Armiño <aalonso@uncoma.edu.ar>
Cc: pgsql-php@postgresql.org
Subject: Re: connection error
Date: Thu, 2 Oct 2003 13:45:45 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0310021345300.25184-100000@css120.ihs.com> (raw)
In-Reply-To: <5.1.0.14.1.20031002163524.00a0a6b0@pop3.uncoma.edu.ar>

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?




view thread (6+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0310021345300.25184-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0310021345300.25184-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0310021345300.25184-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: scott.marlowe@ihs.com, aalonso@uncoma.edu.ar
  Subject: Re: connection error
  In-Reply-To: <Pine.LNX.4.33.0310021345300.25184-100000@css120.ihs.com>
  References: <5.1.0.14.1.20031002163524.00a0a6b0@pop3.uncoma.edu.ar> <Pine.LNX.4.33.0310021345300.25184-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox