Re: problem connecting from JDBC

From: pginfo <pginfo(at)t1(dot)unisoftbg(dot)com>
To: Ravi Kanth <ravi_kanth(at)msn(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: problem connecting from JDBC
Date: 2003-11-10 16:06:25
Message-ID: 3FAFB781.7D71979E@t1.unisoftbg.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

Pls.check if you have in your postgresql.conf set tcpip_socket = true.
I am using pg 7.3.4 + rh 9.0 + jdbc without any problems.
Also as beginning you can make the pg trusted to you ip (I think it is trusted
by default to localhost).
Have you created database with name "test"?

regards,
ivan.

Ravi Kanth wrote:

> Hi,
> I am trying to access postgresql database (7.3.2 - that came by default with
> RedHat Linux 9 distro) using JDBC. I have a Linux user called "oracle" that
> I have created in postgresql also and gave that user privileges to create a
> database.
> I tried to create a databse using createdb and it works.
> The url that I am using in JDBC is: "jdbc:postgresql://localhost:5432/test",
> "oracle", "". It reverts bck with error that says:
> SQLException: Connection refused. Check that the hostname and port are
> correct and that the postmaster is accepting TCP/IP connections.
> I am using JDK 1.4.2 and NetBeans IDE.
> Can anyone plz help? Thanks.
>
> Ravi.
>
> _________________________________________________________________
> Compare high-speed Internet plans, starting at $26.95.
> https://broadband.msn.com (Prices may vary by service area.)
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ravi Kanth 2003-11-10 16:44:15 problem connecting from JDBC
Previous Message Oliver Jowett 2003-11-10 10:29:36 Re: JDBC2.0:PreparedStatement setArray