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

JDBC Connection

From: "Dr(dot) Herrera" <drherlams(at)diandel(dot)com>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: JDBC Connection
Date: 1998-08-24 12:14:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces

	I am trying to connect to PostgreSQL from Java (JDK 1.1.6) under RedHat
Linux 5.1 using the JDBC interface. I have compiled the driver and tried to
run the examples this way:

java -Djdbc.drivers=postgresql.Driver example.basic jdbc:postgresql:prueba
postgres postgres

where 'prueba' is the name of an existing database.
But I always get a 'Connection refused' error in 

I have modified pg_hba.conf to allow any user on any host access to any
but the error still remains. 

Can anybody tell me what can be the problem and any possible solution?

					Thank you very much


pgsql-interfaces by date

Next:From: Goran ThyniDate: 1998-08-24 12:50:51
Subject: Re: [HACKERS] Convert PGconn, PGresult to opaque types?
Previous:From: Telephone VdB Foods LtdDate: 1998-08-24 08:27:06
Subject: Perl, Postgres, Web !!!

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