From: | Eric Marsden <emarsden(at)mail(dot)dotcom(dot)fr> |
---|---|
To: | "Dr(dot) Herrera" <drherlams(at)diandel(dot)com> |
Cc: | <pgsql-interfaces(at)postgreSQL(dot)org> |
Subject: | Re: [INTERFACES] JDBC Connection |
Date: | 1998-08-24 13:40:25 |
Message-ID: | m2lnoev6pi.fsf@cook.onecert.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
>>>>> "DrH" == Herrera <drherlams(at)diandel(dot)com> writes:
DrH> I am trying to connect to PostgreSQL from Java (JDK 1.1.6)
DrH> under RedHat Linux 5.1 using the JDBC interface. I have
DrH> compiled the driver and tried to run the examples this way:
DrH>
DrH> java -Djdbc.drivers=postgresql.Driver example.basic jdbc:postgresql:prueba
DrH> postgres postgres
DrH>
DrH> where 'prueba' is the name of an existing database.
DrH> But I always get a 'Connection refused' error in
DrH> DriverManager.getConnection("jdbc:postgresql:prueba")
DrH>
DrH> I have modified pg_hba.conf to allow any user on any host
DrH> access to any database but the error still remains.
Possible solution: have you started the database with the `-i' option
(to allow TCP/IP connections, which are used by the JDBC interface)?
Read the postmaster manual page for more details.
--
Eric Marsden
emarsden @ mail.dotcom.fr
It's elephants all the way down
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 1998-08-24 14:22:35 | Re: [INTERFACES] Re: [HACKERS] Convert PGconn, PGresult to opaque types? |
Previous Message | Goran Thyni | 1998-08-24 12:50:51 | Re: [HACKERS] Convert PGconn, PGresult to opaque types? |