Access your MongoDB database with Robomongo
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
Configuration of Robomongo
As the tunnel is running, we are connecting to it, which is then a local connection:
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:
As your user doesn’t not have the permission to list the databases, you have to specify the name of your database.
Validate the configuration and click on connect, that’s it.