Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BD6F79FB447 for ; Mon, 12 Mar 2007 09:41:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 48151-05 for ; Mon, 12 Mar 2007 09:41:20 -0300 (ADT) X-Greylist: delayed 00:05:02.096378 by SQLgrey-1.7.4 Received: from mout.perfora.net (mout.perfora.net [217.160.230.41]) by postgresql.org (Postfix) with ESMTP id DBB109FB436 for ; Mon, 12 Mar 2007 09:41:25 -0300 (ADT) Received: from [69.120.33.35] (helo=[192.168.2.18]) by mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis), id 0MKp2t-1HQjlE1Q3U-0007vx; Mon, 12 Mar 2007 08:36:22 -0400 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable Cc: pgsql-php@postgresql.org From: Matthew Terenzio Subject: Re: Problems in connecting to postgreSQL using PHP Date: Mon, 12 Mar 2007 07:35:45 -0500 To: "Kitty Yuen" X-Mailer: Apple Mail (2.624) X-Provags-ID: perfora.net abuse@perfora.net login:55dcc513cc7db400396c2523adeeb8ca X-Provags-ID2: V01U2FsdGVkX19AgZVFUMiqv5/g0B9S1yzANs0zrSC6+pqFP5W FE67lXQzQ9+bk5ucbwCOnS06eD1/iDKHbyx+kZuRHohwPUXZf6 uYrXs6fmbYvwuxvji5Mqw== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/36 X-Sequence-Number: 3748 Could you provide any PHP errors or the pg_hba.conf ? On Mar 12, 2007, at 12:25 AM, Kitty Yuen wrote: > Hi, > =A0 > I am trying to connect my postgreSQL with PHP in localhost. I have=20 > start up the server with -i flag (i.e. postmaster -D=20 > /usr/local/pgsql/data -i &) and edit the pg_hba.conf. However, I still=20= > cannot connect with the database. But, when I tried to remote access=20= > the database through SSH and I can connect with it. > =A0 > Would you please offer any suggestions or solutions? > =A0 > Many=A0thanks, > Kitty3A=A0