pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection Port?
3+ messages / 3 participants
[nested] [flat]

* Connection Port?
@ 2004-09-28 15:31  Chris Helm <chelm@nsidc.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Chris Helm @ 2004-09-28 15:31 UTC (permalink / raw)
  To: pgsql-jdbc

Im trying to use the pgsql-jdbc driver to establish a connection to my 
database with dbvisualer and am having trouble. I believe the problem is with 
port, ive tried 80, 8080, and 5432 (the default) but it still is not  
connecting. 

thanks for any help,
chelm@nsidc.org 




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Connection Port?
@ 2004-09-29 01:42  Kris Jurka <books@ejurka.com>
  parent: Chris Helm <chelm@nsidc.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Kris Jurka @ 2004-09-29 01:42 UTC (permalink / raw)
  To: Chris Helm <chelm@nsidc.org>; +Cc: pgsql-jdbc



On Tue, 28 Sep 2004, Chris Helm wrote:

> Im trying to use the pgsql-jdbc driver to establish a connection to my 
> database with dbvisualer and am having trouble. I believe the problem is with 
> port, ive tried 80, 8080, and 5432 (the default) but it still is not  
> connecting. 
> 

Why do you believe it is the port number?  You haven't given us any error 
message to try and convince us of that.  My best blind guess at your 
problem is that you have not enabled the tcpip_socket parameter in the 
postgresql.conf file.  Prior to the 8.0 release the database does not 
listen on a tcpip socket by default, but instead makes itself available 
over unix sockets (which Java cannot use).

Kris Jurka



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Connection Port?
@ 2004-09-29 02:29  John R Pierce <pierce@hogranch.com>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 3+ messages in thread

From: John R Pierce @ 2004-09-29 02:29 UTC (permalink / raw)
  To: pgsql-jdbc

Kris Jurka wrote:
> On Tue, 28 Sep 2004, Chris Helm wrote:
>>Im trying to use the pgsql-jdbc driver to establish a connection to my 
>>database with dbvisualer and am having trouble. I believe the problem is with 
>>port, ive tried 80, 8080, and 5432 (the default) but it still is not  
>>connecting. 
> 
> Why do you believe it is the port number?  You haven't given us any error 
> message to try and convince us of that.  My best blind guess at your 
> problem is that you have not enabled the tcpip_socket parameter in the 
> postgresql.conf file.  Prior to the 8.0 release the database does not 
> listen on a tcpip socket by default, but instead makes itself available 
> over unix sockets (which Java cannot use).

and, furthermore, the default pg_hba.conf (in the source distribution, 
at least) does not allow any sort of authentication via tcp.  You need 
to add the appropriate line(s) such as...

	host	all	all	0.0.0.0		0.0.0.0		md5

(which will allow any IP address to authenticate as any user on any 
database via md5 password encryption... there are many other choices and 
combinations possible, see $PGDATA/pg_hba.conf and the PostgreSQL 
documentation for more information on authentication).




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-09-29 02:29 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-28 15:31 Connection Port? Chris Helm <chelm@nsidc.org>
2004-09-29 01:42 ` Kris Jurka <books@ejurka.com>
2004-09-29 02:29   ` John R Pierce <pierce@hogranch.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox