Jump to content

[Solved] REMOTE POSTGRESQL ACCESS (JAVA SPRING)


jonas092034

Recommended Posts

Hey guys!

 

I was wondering if I could get remote access to my postgresql server through java. My database is thiagoenca_carteira_inteligente_api and the user that I want to grant access to all ips if have user and password (and string connection). 

User: thiagoenca_jonas

Also, would anyone know the best way to go about connecting to the postgresql server on java spring? Or is the standard method ok?

org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "MY IP", user "thiagoenca_jonas", database "thiagoenca_carteira_inteligente_api", SSL on
    at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693) ~[postgresql-42.5.4.jar:42.5.4]
    at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:203) ~[postgresql-42.5.4.jar:42.5.4]

Link to comment
Share on other sites

On 6/15/2023 at 3:33 PM, jonas092034 said:

My database is thiagoenca_carteira_inteligente_api and the user that I want to grant access to all ips if have user and password (and string connection). 

User: thiagoenca_jonas

Remote access enabled.

On 6/15/2023 at 3:33 PM, jonas092034 said:

would anyone know the best way to go about connecting to the postgresql server on java spring? Or is the standard method ok?

The standard method should work. Let us know if it doesn't work.

Link to comment
Share on other sites

  • Krydos changed the title to [Solved] REMOTE POSTGRESQL ACCESS (JAVA SPRING)
  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...