Re: Connecting PostgreSQL db using Pear - Mailing list pgsql-php

From Vince Vielhaber
Subject Re: Connecting PostgreSQL db using Pear
Date
Msg-id Pine.BSF.4.40.0210041442560.88198-100000@paprika.michvhf.com
Whole thread Raw
In response to Re: Connecting PostgreSQL db using Pear  (Devrim GUNDUZ <devrim@oper.metu.edu.tr>)
Responses Re: Connecting PostgreSQL db using Pear
List pgsql-php
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.
> > <snip>
>
> 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
==========================================================================




pgsql-php by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Re: Connecting PostgreSQL db using Pear
Next
From: Devrim GUNDUZ
Date:
Subject: Re: Connecting PostgreSQL db using Pear