Enabling remote access for Postgresql database?

  • Posted October 15, 2014

I am following this guide and got to setting up postgres and creating a database for my app. I am at the step “Fill in Application Data”, where I have a host and a port for my app’s db. Now I want to connect to my database from my local machine using pgadmin, but it seems I am unable to connect using the information that I get from calling dokku postgresql:info <appname>: I get the error “Server doesn’t listen.” I tried following the directions here but it seems like those settings are for the main postgres app and not for my specific database. How can I enable remote access for my specific database?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Generally this can be done by restricting the user account you are using to connect to not have CONNECT permissions to other databases. It sounds like you have everything else set up correctly.

There is some more detail on a couple different ways to restrict users to a single DB here.