使用pgadmin连接到heroku数据库 [英] Connect to a heroku database with pgadmin

查看:306
本文介绍了使用pgadmin连接到heroku数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 pgadmin 客户端管理我的heroku数据库。到目前为止,我一直在使用 psql
当我使用 heroku pg:credentials 的数据使用 pgadmin 连接de DB时,我获得: / p>

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:

连接伺服器时发生错误:FATAL:permission拒绝数据库
postgres详细信息:用户没有CONNECT权限。

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?

推荐答案

在pgAdminIII中打开Heroku服务器的属性,并将维护DB

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.

默认设置适用于可以连接到服务器上的任何数据库的DBA等,但显然不是这样。

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.

这篇关于使用pgadmin连接到heroku数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆