Jump to content

[Solved] which is the host for postgres?


univalle

Recommended Posts

hello all,

 

I have a Java application with which I need to connect to PostgreSQL database

I am using the following code

 

String url = "____", usr= "_____", password="______"

Connection c = DriverManager.getConnection(url, usr, password);

 

to connect to the database

jdbc driver is fine and I tried it locally

 

The problem I have is with 'url', no place to address

or does the heliohost server can not be accessed remotely?

 

My host is bdunivalle.heliohost.org

 

thanks

Link to comment
Share on other sites

Host is stevie.heliohost.org if you are on stevie, johnny.heliohost.org if you are on johnny.

 

hi Geoff,

 

I am on johnny

 

which is the port? 5432?

 

because, I try

url = "jdbc: postgresql: / / johnny.heliohost.org: 5432/univalle_prueba"

 

my database is univalle_prueba

 

and I could not access, the error is:

 

org.postgresql.util.PSQLException: Connection refused. Verify that the host name and port are correct and that the postmaster is accepting TCP / IP.

 

thanks

Link to comment
Share on other sites

Unfortunately, PostgreSQL does not have an easy way to individually enable remote access. The IP access control list is in the main config file, and cPanel doesn't have a utility to manage that list.

Link to comment
Share on other sites

Guest Geoff

I really don't know; I guess we could collect some opinions from some of our users on this.

 

Hmm... this could be part of HelioPanel, if I ever get started on that.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...