Skip to content

Instantly share code, notes, and snippets.

@piraveen
Last active September 4, 2020 12:55
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save piraveen/c7e786990a422998f2c249c8bbe0873c to your computer and use it in GitHub Desktop.
Save piraveen/c7e786990a422998f2c249c8bbe0873c to your computer and use it in GitHub Desktop.
Setting up RoboMongo to connect with remote MongoDB server (VM, External Server)

Robomongo

Setup

Step 1

Download and install robomongo on your system download links.

#### Step 2 Quickly change the MongoDB Server configuration to allow remote connections. How-to-allow-remote-connections-on-mongodb.

Step 3

  1. Start robomongo.
  2. When the "MongoDB Connections" window appears, click on Create button.
  3. This will popup a new "Connection Settings" window.
  4. Enter a friendly "Name" for this mongoDB connection.
  5. Enter your mongoDB host server IP "Address", also don't forget to update the mongoDB port if you changed it. Default Port: 27017.
  6. Click on Test button, this should popup a window called "Diagnostic". Check if Robomongo connects to the remote server. Close the "Diagnostic" window. If you didn't setup authentication for your mongoDB, you can skip to Step 12.
  7. Click on the "Authentication" tab.
  8. Check the Perform authentication.
  9. Enter the "Database" name.
  10. Enter the "Username" and the "Password".
  11. Click again on Test button. And check if all the checklist items succeed. If not check your credentials.
  12. Click on the "Advanced" tab.
  13. Enter the "Default Database" name that should be opened when you connect to the server.
  14. Click on the Save button.
  15. Now you should be able to see in the "MongoDB Connections" your newly configured connection. Note: The name of the connection will be the friendly name you entered in Step 4.
  16. Double click on the connection you configured and that's it. You should now be able to view all the databases available on the remote MongoDB server. Note: You won't be able to view all the databases if you only have an authentication for a specific database.
  17. If you need to add another remote server, repeat from Step 2.

Links

  • Linux (Debian/Ubuntu)

    • Download Link
    • Go to the downloaded file location and extract the archive.
    sudo mkdir /opt/robomongo
    sudo tar xzvf robomongo-0.9.0-rc7-linux-x86_64-2b7a8ca.tar.gz -C /opt/robomongo
    sudo ln -s /opt/robomongo/robomongo-0.9.0-rc7-linux-x86_64-2b7a8ca/bin/robomongo /usr/sbin/robomongo
    source ~/.bashrc
    • Start robomongo
    robomongo
  • Mac OSX

    • Download Link
    • Go to the downloaded file location and open the .dmg package and click on "robomongo" to start using it.
    • Optionally you can copy the "robomongo" application to your Mac OSX Applications folder by drag and drop for easy access.
  • Windows

    • Download Link
    • Go to the downloaded file location and double click one the "robomongo.exe" to start using it.
    • Optionally you can copy the "robomongo.exe" to your Windows C:/ folder by drag and drop for easy access.

Documentation

For further details about MongoDB please reference to the official documentation.

Credits

Thanks to @mykong for the remote mongoDB server configuration tutorial.

@nitank
Copy link

nitank commented Feb 22, 2017

great...

@shashankinx
Copy link

Thank you ! :)

@smartweb2017
Copy link

Thanks,

@kimprosh
Copy link

kimprosh commented Aug 6, 2018

Thanks

@basabbanerjee
Copy link

Thank you

@thearabbit
Copy link

I base on Meteor, and use Mup Docker to deploy my app to digitalOcean.
I could not connect.

Connection

  • Type: direct
  • Name: any
  • address: private:707

Acuth

  • Database: admin
  • user: root
  • password: pwd...

image

@pallavbakshi
Copy link

If anyone get "Unable to connect to ..." try this solution - https://github.com/Studio3T/robomongo/issues/1437#issuecomment-404151746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment