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

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 (view raw or flat)
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

pgsql-interfaces by date

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

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