Re: Regarding connection thru web application - Mailing list pgsql-general

From Richard Huxton
Subject Re: Regarding connection thru web application
Date
Msg-id 200212031904.04628.dev@archonet.com
Whole thread Raw
In response to Regarding connection thru web application  ("Prachi Jain" <prachijain3@rediffmail.com>)
List pgsql-general
On Tuesday 03 Dec 2002 5:28 pm, Prachi Jain wrote:
>
> java.sql.SQLException: Could not connect to the server;
> Could not resolve hostname.
>
> What are the changes i need to do, if i m connecting thru web
> application. This is the first time i m interacting with Postgres,
> so please don't mind if the question is silly. But, please do
> respond.

No questions are silly. Can't guarantee the same for my answers.

Check for typo's and DNS errors - the error is saying it can't find a hostname
(e.g. database.example.com).
Then check that you can connect via psql from the client machine. If it still
doesn't work, then we can look at the ODBC settings.

--
  Richard Huxton

pgsql-general by date:

Previous
From: "Aurangzeb M. Agha"
Date:
Subject: alter table differences on Cygwin and Linux?
Next
From: Richard Huxton
Date:
Subject: Re: alter table differences on Cygwin and Linux?