Connecting DBeaver to a Heroku Postgres Database

I recently started using DBeaver to connect to postgres databases, both local and remote.

Most of my production databases are currently on Heroku. The process of linking DBeaver to a Heroku Postgres database was fairly straightforward, with the exception of an SSL setting that is not very intuitive. I wanted to document these steps here for others trying to achieve the same thing.


Find your Heroku Database Credentials

The exact steps are slightly different based on whether you are using a hobby or pro Postgres Addon, but the idea is the same.

  1. Go to your Heroku App
  2. Click on the Heroku Postgres Addon
  3. Go To Settings + Credentials

Heroku Postgres Addon

 

 

 

 

 

 

 

 

 

Create New Connection in DBeaver

  1. Open the New Connection Wizard
  2. Select PostgresSQL as your Connection Type and click Next
  3. Fill out the Host, Database, Port, User, and Password fields to match the Heroku Credentials
    Note: At this point, if you click Test Connection, you will see the connection fails with this message: “FATAL: no…

Read more