Connect to a heroku database with pgadmin

Tomas Romero picture Tomas Romero · Aug 2, 2012 · Viewed 81.9k times · Source

I would like to manage my heroku database with pgadmin client. By now, I've been doing this with psql. When I use data from heroku pg:credentials to connect de DB using pgadmin, I obtain:

An error has occurred:

Error connecting to the server: FATAL: permission denied for database "postgres" DETAIL: User does not have CONNECT privilege.

Any guide on how to achieve the connection?

Answer

araqnid picture araqnid · Aug 2, 2012

Open the "Properties" of the Heroku server in pgAdminIII and change the "Maintenance DB" value to be the name of the database you want to connect to.

pgAdmin III - New Server Registration

The default setup is suitable for DBAs et al who can connect to any database on the server, but apparently that isn't true in your case.