Skip to content

Connect to Heroku Postgres from Mac

Use the current credentials for the Heroku Postgres database attached to your application. A database credential includes its own host, port, database, user, and password.

You need access to the database’s credentials and a permitted external connection route. Your Heroku account password is separate from the database password.

Obtain a current PostgreSQL connection URL for the intended database and credential. Follow Heroku’s credential guide for the current controls. A named credential can provide narrower permissions than the owner account.

Keep the URL private because it contains the database password.

  1. Open a new connection using connection basics.
  2. Use Import from URL to import the database URL.
  3. Check the imported host, port, database, and user.
  4. Set SSL Mode for your Heroku database.
  5. Click Test.
  6. Click Save & Connect after a successful test.

Heroku requires SSL for database client connections. Use the certificate requirements for your database with TableAI’s SSL/TLS controls. See Heroku’s SSL requirement.

Private and Shield databases have separate external-access requirements. Follow Heroku’s external connection guide for approved access and client certificates.

password authentication failed for user
no pg_hba.conf entry for host

After a credential rotation, obtain fresh details and update the saved connection. Check every field, since credentials identify more than a password. If the error ends in SSL off, check your SSL configuration. See Heroku’s error reference.

Continue with 28P01, TLS errors, or connection failed.

Browse and search after connecting, or return to the PostgreSQL overview.