pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection refused. HELP ME!!!!
3+ messages / 3 participants
[nested] [flat]

* Connection refused. HELP ME!!!!
@ 2003-09-16 14:58 Sergio Ramos <srsuarez@terra.es>
  2003-09-17 09:02 ` Re: Connection refused. HELP ME!!!! Luca Moscatelli <imbruglia@tiscali.it>
  2003-09-17 09:08 ` Re: [JDBC] Connection refused. HELP ME!!!! khalil El Mazouari <Khalil.Elmazouari@ablynx.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Sergio Ramos @ 2003-09-16 14:58 UTC (permalink / raw)
  To: pgsql-jdbc@postgresql.org

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.




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

* Re: Connection refused. HELP ME!!!!
  2003-09-16 14:58 Connection refused. HELP ME!!!! Sergio Ramos <srsuarez@terra.es>
@ 2003-09-17 09:02 ` Luca Moscatelli <imbruglia@tiscali.it>
  1 sibling, 0 replies; 3+ messages in thread

From: Luca Moscatelli @ 2003-09-17 09:02 UTC (permalink / raw)
  To: pgsql-jdbc@postgresql.org

Hi,
    Try this, modify pg_hba.conf in this way:
    host all all 127.0.0.1 255.255.255.255 trust
    local all all <empty> <empty> trust
   
These are in my pg_bha.conf file and it works. I've founded them in the 
pg_hba.conf.sample file in the same directory.
Bye, Luca


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
>               http://archives.postgresql.org






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

* Re: [JDBC] Connection refused. HELP ME!!!!
  2003-09-16 14:58 Connection refused. HELP ME!!!! Sergio Ramos <srsuarez@terra.es>
@ 2003-09-17 09:08 ` khalil El Mazouari <Khalil.Elmazouari@ablynx.com>
  1 sibling, 0 replies; 3+ messages in thread

From: khalil El Mazouari @ 2003-09-17 09:08 UTC (permalink / raw)
  To: Sergio Ramos <srsuarez@terra.es>; pgsql-interfaces

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@ablynx.com. Thank you for your co-operation.
-----------------------------------------------------------------------



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


end of thread, other threads:[~2003-09-17 09:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-16 14:58 Connection refused. HELP ME!!!! Sergio Ramos <srsuarez@terra.es>
2003-09-17 09:02 ` Luca Moscatelli <imbruglia@tiscali.it>
2003-09-17 09:08 ` khalil El Mazouari <Khalil.Elmazouari@ablynx.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