Access your MongoDB database with Robomongo

Requirements

Databases hosted on Scalingo are not directly available on the Internet. By default access to most databases are unencrypted, so unsecure. Applications are on the same network than your database, but you can not connect your machine to it directly.

It is possible to use Robomongo, but you have to setup an encrypted tunnel to your database thanks to our Command line utility

→ How-to: build an uncrypted tunnel to your database

Configuration of Robomongo

Connection

As the tunnel is running, we are connecting to it, which is then a local connection:

Authentication

The connection data can be found from the MONGO_URL environment variable of your env:

$ scalingo env | grep MONGO_URL
MONGO_URL=mongodb://test-1234:EsEjseivpacatVoogfijbiapgadTyg@test-1234.mongodb.dbs.scalingo.com/test-1234

In this case:

  • User: test-1234
  • Password: EsEjseivpacatVoogfijbiapgadTyg
  • Database: test-1234

Fill the fields accordingly:

Advanced

As your user doesn’t not have the permission to list the databases, you have to specify the name of your database.

Connect

Validate the configuration and click on connect, that’s it.

schedule 20 Apr 2016