阅读背景:

使用pgAdmin管理Cloudfoundy上的Postgres数据库

来源:互联网 

I'd like to use pgAdmin to manage a Postgres Database on Cloudfoundy (to build an index on a given DB column). I'm pointing pgAdmin to api.cloudfoundry.com, but don't know what the rest of the settings should be, such as the port.

我想使用pgAdmin管理Cloudfoundy上的Postgres数据库(在给定的DB列上构建索引)。我将pgAdmin指向api.cloudfoundry.com,但不知道其余设置应该是什么,例如端口。

1 个解决方案

#1


1  

You can't use api.cloudfoundry.com and expect it to work. Instead, what you need to do is use a feature of CloudFoundry named "tunneling". What it will do is proxy communication between your pgAdmin tools running locally and the remote database running on Cf over http.

您无法使用api.cloudfoundry.com并期望它能够正常运行。相反,您需要做的是使用名为“隧道”的CloudFoundry功能。它将做的是在本地运行的pgAdmin工具和通过http在Cf上运行的远程数据库之间的代理通信。

This is described here : https://docs.cloudfoundry.com/tools/vmc/caldecott.html

这在这里描述:http://docs.cloudfoundry.com/tools/vmc/caldecott.html

Note that if you're familiar with eclipse/STS, an even easier way to setup this is to use the CloudFoundry plugin, as described here: https://blog.cloudfoundry.com/2012/07/31/cloud-foundry-integration-for-eclipse-now-supports-tunneling-to-services/

请注意,如果您熟悉eclipse / STS,更简单的设置方法是使用CloudFoundry插件,如下所述:http://blog.cloudfoundry.com/2012/07/31/cloud-foundry-集成换食,现在已经支持隧道至服务/


分享到: