简体   繁体   中英

connecting robomongo with modulus mongodb server

How can I use Robomongo to connect to my free modulus.io mongodb server? In node.js code, I can do this to connect to my database:

// config/database.js
module.exports = {

    'url' : 'mongodb://<user>:<pass>@mongo.onmodulus.net:27017/ytub8Upa'

};

What's the equivalent in Robomongo? It asks for Address and the port number after : . How do I point it to my modulus database?

In Connection tab:

Address: mongo.onmodulus.net .

Port: 27017

In Authentication tab:

Check "Perform authentication", and specify username and password.

To add to Dmitry's answer above, you also need to specify a database nmae in the Authentication tab: using your example code, that would be ytub8Upa .

More info:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM