Skip site navigation (1) Skip section navigation (2)

pg_connect error

From: "LonLinux" <longlinux(at)gmail(dot)com>
To: <pgsql-php(at)postgresql(dot)org>
Subject: pg_connect error
Date: 2008-05-18 20:21:15
Message-ID: 001201c8b924$bad26150$e295fea9@osvaldox (view raw, whole thread or download thread mbox)
Lists: pgsql-php
Hello, I have this problem with a connection to postgres server (running in a win2000 server).
When I connect with pgAdmin to the same postgres server works ok, but when I try to connect from php5 the connection fails.
Can help me?

$db_conn = pg_connect("host=SQLMACHINE port=5432 password=xxxx user=postgres dbname=compraventa1");
if (!$db_conn): ?>
    <H1>Failed connecting to postgres database <? echo "compraventa1" ?></H1> <?



pgsql-php by date

Next:From: Robert TreatDate: 2008-05-19 01:40:10
Subject: Re: pg_connect error
Previous:From: Tomas VondraDate: 2008-05-01 17:50:36
Subject: Re: bytea columns and memory exhaustion

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group