Skip to content

Instantly share code, notes, and snippets.

@piraveen
Last active September 4, 2020 12:55
Show Gist options
  • 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.

@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