pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergio Ramos <srsuarez@terra.es>
To: pgsql-jdbc@postgresql.org
Subject: Connection refused. HELP ME!!!!
Date: Tue, 16 Sep 2003 15:58:34 +0100
Message-ID: <3F67251A.3070209@terra.es> (raw)

Hello.
I have installed postgresql with de jdbc driver, but I can't run the 
example of the jdbc faq (http://www.fankhausers.com/postgresql/jdbc/). I 
obtain:
***Exception:
Connection refused. Check that the hostname and port are correct and 
that the postmaster is accepting TCP/IP connections.
Connection refused. Check that the hostname and port are correct and 
that the postmaster is accepting TCP/IP connections.
         at 
org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:161)
         at org.postgresql.Driver.connect(Driver.java:120)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at HelloPostgresql.<init>(HelloPostgresql.java:34)
         at HelloPostgresql.main(HelloPostgresql.java:115)

I have modified my pg_hba.conf(host all 127.0.0.1 255.0.0.0 trust), and 
my posgresql.conf(tcpip_socket = true) to admit tcp socket connections. 
What can I do?
Thanks.




view thread (3+ messages)  latest in thread

Message-ID: <3F67251A.3070209@terra.es>
Permalink:  ../3F67251A.3070209@terra.es/
Also on:    postgresql.org/message-id/3F67251A.3070209@terra.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: srsuarez@terra.es, pgsql-jdbc@postgresql.org
  Subject: Re: Connection refused. HELP ME!!!!
  In-Reply-To: <3F67251A.3070209@terra.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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