Erro no host (jdbc)

2 respostas
G
Unable to connect

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:167)

at org.postgresql.Driver.connect(Driver.java:122)

at java.sql.DriverManager.getConnection(DriverManager.java:512)

at java.sql.DriverManager.getConnection(DriverManager.java:171)

at ConectarPostgresql.<init>(ConectarPostgresql.java:23)

at ConectarPostgresql.main(ConectarPostgresql.java:47)

2 Respostas

wbsouza

Aparentemente o PostgreSQL não está configurado para receber conexões remotas. Não é bem uma questão java, mas sim de configuração da segurança do PostgreSQL. Dê uma olhada em http://pgsqlbr.querencialivre.rs.gov.br/index.php?corpo=tut_inst_linux2

[]s, Welington B. Souza

G

Consegui resolver valeu

Criado 18 de setembro de 2003
Ultima resposta 19 de set. de 2003
Respostas 2
Participantes 2