Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DD0F31337BD1 for ; Thu, 7 Apr 2011 13:56:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 26575-10 for ; Thu, 7 Apr 2011 16:56:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mail.postgresql.org (Postfix) with ESMTP id 344161337BA3 for ; Thu, 7 Apr 2011 13:56:38 -0300 (ADT) Received: from overdrive.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id C6216F7419; Thu, 7 Apr 2011 12:56:36 -0400 (EDT) Date: Thu, 7 Apr 2011 12:56:35 -0400 From: Bill Moran To: Rich Shepard Cc: pgsql-php@postgresql.org Subject: Re: Connecting PHP-based Application to Postgres-9.0.3 Message-Id: <20110407125635.1ae13751.wmoran@potentialtech.com> In-Reply-To: References: <201104070920.37258@hal.medialogik.com> Organization: Bill Moran X-Mailer: Sylpheed 3.0.3 (GTK+ 2.20.1; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/6 X-Sequence-Number: 4168 In response to Rich Shepard : > On Thu, 7 Apr 2011, Alan Hodgson wrote: > > > Can you connect to the database with psql using the same credentials? PHP > > will use the same underlying postgresql library to connect. > > Alan, > > If you mean can I as a user connect to that same database, the answer is > yes: > > [rshepard@salmo ~]$ psql cms > psql (9.0.3) > Type "help" for help. This is incorrect. The ADODB error message indicates that you are connecting to localhost via TCP/IP. The default for psql when you don't specify a host is to connect via unix domain socket. You're not testing the same thing. See if psql -h localhost cms works. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/