Re: [INTERFACES] How to connect with JDBC to another machine ?

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Constantin Teodorescu <teo(at)flex(dot)ro>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [INTERFACES] How to connect with JDBC to another machine ?
Date: 1998-12-29 20:10:34
Message-ID: Pine.LNX.4.04.9812292009540.8386-100000@maidast.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Tue, 29 Dec 1998, Constantin Teodorescu wrote:

> It may be a silly question, but ...
>
> How do I specify in Java that JDBC should getConnection with a
> PostgreSQL running on another machine ?
> Something like 'host:port:jdbc:postgresql:database' ?

Close ;-)

jdbc:postgresql://host/database

or

jdbc:postgresql://host:port/database

--
Peter T Mount peter(at)retep(dot)org(dot)uk
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter T Mount 1998-12-29 20:29:48 New version of JDBC driver
Previous Message Constantin Teodorescu 1998-12-29 17:58:36 How to connect with JDBC to another machine ?