Connection refused. HELP ME!!!!

From: Sergio Ramos <srsuarez(at)terra(dot)es>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Connection refused. HELP ME!!!!
Date: 2003-09-16 14:58:34
Message-ID: 3F67251A.3070209@terra.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-jdbc

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.

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Merlin Moncure 2003-09-16 18:37:32 observations about temporary tables and schemas
Previous Message Tom Lane 2003-09-16 13:46:26 Re: ColumnName and ColumnNumber in libpq (C interface)

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2003-09-16 22:29:17 Re: Specification of "/" in the host name (for Unix socket support)
Previous Message Paul Thomas 2003-09-16 13:31:00 Re: Specification of "/" in the host name (for Unix socket support)