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

Re: [JDBC] Connection refused. HELP ME!!!!

From: khalil El Mazouari <Khalil(dot)Elmazouari(at)ablynx(dot)com>
To: Sergio Ramos <srsuarez(at)terra(dot)es>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [JDBC] Connection refused. HELP ME!!!!
Date: 2003-09-17 09:08:56
Message-ID: 3F6824A8.40206@ablynx.com (view raw or flat)
Thread:
Lists: pgsql-interfacespgsql-jdbc
Hi,
as postgres user use " postmaster -i -D /usr/local/pgsql/data/ & " to 
start postgresql.

Khalil ;-)
          

Sergio Ramos wrote:

> 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.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>               http://archives.postgresql.org
>


-----------------------------------------------------------------------
THIS E-MAIL MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR
ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS
PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE.
If the reader of this E-mail message is not the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited.  If you have received this
communication in error, please notify us immediately at
ablynx(at)ablynx(dot)com(dot) Thank you for your co-operation.
-----------------------------------------------------------------------

In response to

pgsql-interfaces by date

Next:From: Tom LaneDate: 2003-09-17 14:26:32
Subject: Re: observations about temporary tables and schemas
Previous:From: Luca MoscatelliDate: 2003-09-17 09:02:24
Subject: Re: Connection refused. HELP ME!!!!

pgsql-jdbc by date

Next:From: Barry LindDate: 2003-09-17 09:38:37
Subject: Re: Error Codes
Previous:From: Atul AroraDate: 2003-09-17 09:07:27
Subject: Error Codes

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