- I have my premium openshift account
- 我有我的保险帐户
- I have all types of access in openshift
- 我在openshift中有所有类型的访问
- I have ssh key & user's credentials
- 我有ssh密钥和用户凭证
- I have MongoVUE & Robomongo & others client tools to open mongodb database.
- 我有MongoVUE & Robomongo等客户端工具来打开mongodb数据库。
- when I try to open any local mongodb database then its working fine
- 当我尝试打开任何本地mongodb数据库时,它都可以正常工作
- but I want to directly connect my mongodb database of openshift server to mongoVUE or any else so I can see which data is in my server database.
- 但是我想直接将我的openshift服务器的mongodb数据库连接到mongoVUE或其他数据库,这样我就可以看到我的服务器数据库中有哪些数据。
- I have tried so many times to connect locally but it can connect to openshift but can not connect with mongodb database so please provide some good & exact steps so I can connect it.
- 我已经尝试了很多次本地连接,但是它可以连接到openshift,但是不能连接mongodb数据库,所以请提供一些好的和准确的步骤,以便我可以连接它。
2 个解决方案
#1
8
I use mongovue also. Just do a 'rhc port-forward '
我使用mongovue也。只需要做一个“rhc端口前锋”
Then run mongovue using the Mongodb credentials that OPENSHIFT gave you.
然后使用OPENSHIFT提供的Mongodb凭据运行mongovue。
Steps.
步骤。
rhc port-forward <app-name>
Wait a couple of seconds. You then should see something like this.
等几秒钟。你会看到这样的东西。
Then run Mongovue. Add a connection and enter in your Openshift Mongodb credentials like this:
然后运行Mongovue。添加一个连接并在Openshift Mongodb凭证中输入如下内容:
Save, Select your connection, and press connect. It should work.
保存,选择您的连接,并按下连接。它应该工作。
You should have been given you mongodb credentials when you added the mongodb cartridge. You can also ssh into your app and do a "env" and see your mongodb password and username.
在添加mongodb墨盒时,应该给您mongodb凭据。你也可以ssh到你的应用程序,做一个“env”,看到你的mongodb密码和用户名。
#2
4
Finally I got perfect tool for it to connect with mongodb with server database in which we can perform all kind of CRUD operations. we can use Robomongo tool for it which doesn't require paid version to perform CRUD operation. Robomongo is available here http://robomongo.org/download.html mongoVUE requires paid version.
最后我得到了一个完美的工具,可以将mongodb与服务器数据库连接起来,我们可以在其中执行各种CRUD操作。我们可以使用Robomongo工具,它不需要付费版本来执行CRUD操作。Robomongo网站http://robomongo.org/download.html mongoVUE需要付费版本。
I use Robomongo. Just do a 'rhc port-forward '
我使用Robomongo。只需要做一个“rhc端口前锋”
Then run Robomongo using the Mongodb credentials that OPENSHIFT gave you.
然后使用OPENSHIFT提供的Mongodb凭证运行Robomongo。
Steps.
步骤。
rhc port-forward Wait a couple of seconds. You then should see something like this.
左舷向前等几秒钟。你会看到这样的东西。
port forward image
端口转发图片
Then run Robomongo. Add a connection and enter in your Openshift Mongodb credentials:
然后运行Robomongo。添加连接并输入Openshift Mongodb证书:
#1
8
I use mongovue also. Just do a 'rhc port-forward '
我使用mongovue也。只需要做一个“rhc端口前锋”
Then run mongovue using the Mongodb credentials that OPENSHIFT gave you.
然后使用OPENSHIFT提供的Mongodb凭据运行mongovue。
Steps.
步骤。
rhc port-forward <app-name>
Wait a couple of seconds. You then should see something like this.
等几秒钟。你会看到这样的东西。
Then run Mongovue. Add a connection and enter in your Openshift Mongodb credentials like this:
然后运行Mongovue。添加一个连接并在Openshift Mongodb凭证中输入如下内容:
Save, Select your connection, and press connect. It should work.
保存,选择您的连接,并按下连接。它应该工作。
You should have been given you mongodb credentials when you added the mongodb cartridge. You can also ssh into your app and do a "env" and see your mongodb password and username.
在添加mongodb墨盒时,应该给您mongodb凭据。你也可以ssh到你的应用程序,做一个“env”,看到你的mongodb密码和用户名。
#2
4
Finally I got perfect tool for it to connect with mongodb with server database in which we can perform all kind of CRUD operations. we can use Robomongo tool for it which doesn't require paid version to perform CRUD operation. Robomongo is available here http://robomongo.org/download.html mongoVUE requires paid version.
最后我得到了一个完美的工具,可以将mongodb与服务器数据库连接起来,我们可以在其中执行各种CRUD操作。我们可以使用Robomongo工具,它不需要付费版本来执行CRUD操作。Robomongo网站http://robomongo.org/download.html mongoVUE需要付费版本。
I use Robomongo. Just do a 'rhc port-forward '
我使用Robomongo。只需要做一个“rhc端口前锋”
Then run Robomongo using the Mongodb credentials that OPENSHIFT gave you.
然后使用OPENSHIFT提供的Mongodb凭证运行Robomongo。
Steps.
步骤。
rhc port-forward Wait a couple of seconds. You then should see something like this.
左舷向前等几秒钟。你会看到这样的东西。
port forward image
端口转发图片
Then run Robomongo. Add a connection and enter in your Openshift Mongodb credentials:
然后运行Robomongo。添加连接并输入Openshift Mongodb证书: