Hello everyone, you need to connect to a remote PostgreSql
via IntellijIdea
and PgAdmin3
, everything is the same there, but I just can't connect.
I have: ip remote server, login , password . There is also a database name , user name , and password .
Through the terminal doing all the actions manually, I connect, but I don’t really want to connect all the time through the console. I think it is adequate to use the appropriate means for the connection.
Here are the data entry forms for the connection:
and mistake
There is one more parameter in the settings of the connection in pom.xml, server-url , but I’ll manually stop without it.
-L локальный-порт:localhost:удалённый-порт
option-L локальный-порт:localhost:удалённый-порт
you are creating a tunnel. when accessing theлокальный-порт
on the local machine (telnet or psql program or any other), connection to theудалённый-порт
will be performed on the remote machine. - aleksandr barakin