X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B7545D1B531 for ; Thu, 2 Oct 2003 19:54:36 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 63599-10 for ; Thu, 2 Oct 2003 16:53:48 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 949C4D1B51D for ; Thu, 2 Oct 2003 16:53:46 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h92JrQGQ006508; Thu, 2 Oct 2003 13:53:26 -0600 (MDT) Date: Thu, 2 Oct 2003 13:45:45 -0600 (MDT) From: "scott.marlowe" To: Ana Carolina Alonso de =?iso-8859-1?Q?Armi=F1o?= Cc: Subject: Re: connection error In-Reply-To: <5.1.0.14.1.20031002163524.00a0a6b0@pop3.uncoma.edu.ar> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/6 X-Sequence-Number: 2367 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?