Re: Connecting PostgreSQL db using Pear

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxx    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
==========================================================================





[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux