Re: Connecting PostgreSQL db using Pear

From: Vince Vielhaber <vev(at)michvhf(dot)com>
To: Devrim GUNDUZ <devrim(at)oper(dot)metu(dot)edu(dot)tr>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Connecting PostgreSQL db using Pear
Date: 2002-10-04 18:46:22
Message-ID: Pine.BSF.4.40.0210041442560.88198-100000@paprika.michvhf.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)unix+localhost/database_name

That *should* do it.

Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH email: vev(at)michvhf(dot)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
==========================================================================

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Devrim GUNDUZ 2002-10-04 18:55:47 Re: Connecting PostgreSQL db using Pear
Previous Message Devrim GUNDUZ 2002-10-04 18:16:52 Re: Connecting PostgreSQL db using Pear