Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A7D6B475F4A for ; Fri, 4 Oct 2002 14:46:41 -0400 (EDT) Received: from paprika.michvhf.com (adsl-67-36-71-182.dsl.sfldmi.ameritech.net [67.36.71.182]) by postgresql.org (Postfix) with SMTP id E3B11475EF0 for ; Fri, 4 Oct 2002 14:46:40 -0400 (EDT) Received: (qmail 88398 invoked by uid 1001); 4 Oct 2002 18:46:22 -0000 Date: Fri, 4 Oct 2002 14:46:22 -0400 (EDT) From: Vince Vielhaber To: Devrim GUNDUZ Cc: pgsql-php@postgresql.org Subject: Re: Connecting PostgreSQL db using Pear In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/16 X-Sequence-Number: 1531 On Fri, 4 Oct 2002, Devrim GUNDUZ wrote: > > Hi Vince, > > On Fri, 4 Oct 2002, Vince Vielhaber wrote: > > > Strangely enough, yes. I just did it this week. > > > > No, I still could not succeed... > > Here is my pg_hba.conf file: > > local all password passwdf > host all 127.0.0.1 255.255.255.255 password passwdf > > here is the part of postgresql.conf file: > > tcpip_socket = false > #port = 5432 > > > So, what should be the $dsn variable?? Ok, my example assumed you were set up for trust not password. pgsql://username:password@unix+localhost/database_name That *should* do it. Vince. -- ========================================================================== Vince Vielhaber -- KA8CSH email: vev@michvhf.com http://www.pop4.net 56K Nationwide Dialup from $16.00/mo at Pop4 Networking http://www.camping-usa.com http://www.cloudninegifts.com http://www.meanstreamradio.com http://www.unknown-artists.com ==========================================================================