如何将 Robomongo 连接到 MongoDB [英] How to connect Robomongo to MongoDB

查看:49
本文介绍了如何将 Robomongo 连接到 MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的运行系统中有 MongoDB 和 Robomongo,我使用 Robomongo 作为客户端.

我已将 MongoDB 安装在我将其视为服务器的不同系统上,并且我想将我的系统(作为客户端)的 Robomongo 连接到另一个系统(服务器)上的 MongoDB.我应该遵循哪些步骤来实现相同的目标?

我使用的是机器名称,因为系统的 IP 地址不是静态的.但即使我使用系统的 IP 地址,我也会收到同样的错误:

<块引用>

连接失败,无法连接无法连接到服务器 W7IN05200067D:27017"

我直接连接到它,我没有使用任何身份验证.

解决方案

我能够使用如下连接字符串将 Robomongo 连接到在 Mongo Labs 上运行的远程 MongoDB 实例:

  1. 下载最新版本的 Robomongo.我从

  2. 在身份验证选项卡下按如下所示填充数据库名称、用户名和密码.

  3. 测试连接.

I am have MongoDB and Robomongo in my running system, and I am using Robomongo as the client.

I have installed MongoDB on a different system which I am treating as server, and I want to connect Robomongo of my system (as a client) to MongoDB on another system (server). What steps should I follow to achieve the same?

I am using the machine name, as the system's IP address is not static. But even if I use the system's IP address, I get the same error:

connect failed, can't connect couldn't connect to server W7IN05200067D:27017"

I am connecting to it directly, and I am not using any authentication.

解决方案

I was able to connect Robomongo to a remote instance of MongoDB running on Mongo Labs using the connection string as follows:

  1. Download the latest version of Robomongo. I downloaded 0.9 RC6 from here.

  2. From the connection string, populate the server address and port numbers as follows.

  3. Populate DB name and username and password as follows under the authentication tab.

  4. Test the connection.

这篇关于如何将 Robomongo 连接到 MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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