Question

Enabling remote access for Postgresql database?

  • Posted on October 15, 2014
  • jlchangAsked by jlchang

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.