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

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

问题描述

我想用 pgadmin 客户端管理我的 Heroku 数据库.到现在为止,我一直在用 psql 做这件事.当我使用 heroku pg:credentials 中的数据使用 pgadmin 连接 de DB 时,我获得:

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:

发生错误:

连接到服务器时出错:致命:数据库权限被拒绝postgres"详细信息:用户没有 CONNECT 权限.

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

如何实现连接?

推荐答案

在 pgAdminIII 中打开 Heroku 服务器的属性"并将维护数据库"值更改为要连接的数据库的名称.

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天全站免登陆