pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David C. Brown <dbrown@centennialwines.com>
To: arun kv <arun@library.iisc.ernet.in>
Cc: PGSQL <pgsql-php@postgresql.org>
Subject: Re: Error"Unable to connect to PostgresSQL server: connectDBStart()"
Date: Mon, 09 Sep 2002 10:46:12 -0500
Message-ID: <3D7CC244.7000303@centennialwines.com> (raw)
References: <Pine.BSO.4.44.0209091707030.120-100000@library.iisc.ernet.in>

It says it cannot resolve "localhost"  Do you have it defined in your 
/etc/hosts file (or c:\windows\hosts)?

Once it fails to resolve localhost it cannot create a connection to the 
database which in turn is the next operation on that connection (that 
you didn't create) fails with the second error message.

Dave

arun kv wrote:

>
> hello,
>         I am using PHP to connect to postgresql server. Till now it was
> working fine and PHP was connecting sql server without any problems.
> Suddenly today i am getting an error or warning which says
> 'Warning:
> Unable to connect to PostgresSQL server: connectDBStart() -- unknown
> hostname: localhost in /var/www/html/phpfiles/others/othersbrowse.php on
> line 20
>                  Warning: Supplied argument is not a valid PostgreSQL link
> resource in /var/www/html/phpfiles/others/othersbrowse.php on line 25
>                                                         ERROR IN
> EXECUTION'
>
>
> I am not getting what the problem was. Beform some times it used to come
> but when i restarted the system it used to work fine.
> Pls anybody tell me what the problem is and any suggestions pls since the
> server has to run all the 24 hours and 365 days.
>         thanks in advance
>               Arun
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org
>
>  
>





view thread (4+ messages)

Message-ID: <3D7CC244.7000303@centennialwines.com>
Permalink:  ../3D7CC244.7000303@centennialwines.com/
Also on:    postgresql.org/message-id/3D7CC244.7000303@centennialwines.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: dbrown@centennialwines.com, arun@library.iisc.ernet.in
  Subject: Re: Error"Unable to connect to PostgresSQL server: connectDBStart()"
  In-Reply-To: <3D7CC244.7000303@centennialwines.com>
  References: <Pine.BSO.4.44.0209091707030.120-100000@library.iisc.ernet.in> <3D7CC244.7000303@centennialwines.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox