How to connect to database when not using socket /tmp/.s.PGSQL.5432

Hi!


If I the database server is listen on any other socket than /tmp/.s.PGSQL.5432, how can I connect to the database with Liquibase?


If the server for example is listen to /Users/myAccount/liquibase_test/.s.PGSQL.5432 how can I connect liquibase to the server?

The logic for connecting to the database is just the standard JDBC url, so however you normally connect to the database should work just fine with Liquibase.


Nathan

Thanks, but is it possible to connect the Postgres database with JDBC if the postgres database server listen on 

Erik

It looks like the JDBC driver doesn’t support connecting via a socket, only by port


http://jdbc.postgresql.org/documentation/91/prepare.html


Nathan

Thanks Nathan, I have to find out any other way to solve my problem.


Erik