Codementor Events

How to connect GUI to MongoDB Shell

Published May 27, 2018Last updated Nov 22, 2018
How to connect GUI to MongoDB Shell

Heyo guys, lets talk about GUI, lets talk about MongoDB.

For familiarities, MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. MongoDB is developed by MongoDB Inc., and is published under a combination of the GNU Affero General Public License and the Apache License.
MongoDB has official drivers for major programming languages and development environments.
Now to Robo 3T. Before last this year, I have always had to use the Mongo Shell (which requires running the MongoDB Database Server first) to perform all my DB operations with my MongoDB database, from the “show dbs” command to “use mydatabase” to db.admins.find() and “db.admins.find().pretty()” that make the output much more prettier.

This is definitely not fun or interesting cos there are no GUI to interact with, MongoDB only provides us with a CLI to interact with. But with the invention of Robo 3T life is much more easier and simpler.
Wondering what is Robo 3T?
Robo 3T (formerly Robomongo) is the free lightweight GUI for MongoDB enthusiasts.
With Robo 3T, you can easily get query results, manage and manipulate documents very very easily without going through the stress of the CLI provided with Mongo Shell.

Now that we now know which GUI can be used to enhance out MongoDB experience let’s look at the steps to connect the two entities together.

Steps

  1. If you don’t have MongoDB installed initially on your workstation, I mean you really missing out on cool stuffs, but hang to and click on the link below to download MongoDB suitable for your OS.
    Link: https://www.mongodb.com/lp/download/mongodb-enterprise?jmp=nav
    As at the time I downloaded mine the name given to the file was “mongodb-win32-x86_64-2008plus-ssl-3.4.4-signed.msi”
  2. Install by clicking on the downloaded msi file.
  3. To download Robo 3T. visit https://robomongo.org/download or https://studio3t.com/download-now/ which is for the Studio version of Robo 3T (https://robomongo.org/ shows the difference between the both system software).
  4. Navigate to where the “bin” folder is to run mongod.exe.
    C:\Program Files\MongoDB\Server\3.4\bin is the path on my computer.

Capture.PNG

  1. Run Robo 3T

  2. Click on “Connect” on the dialogue box to give access to Robo 3T to connect to port 27017 and if all goes well, you are good to go!

Capture1PNG.PNG

Now you can enjoy the freedom and joy Robo 3T provides. The GUI is awesome, it is easy to use, easy to learn how to use and easy to remember to use.

Hope this was useful!

Bello Ajibola
Contact: Mail: bellohargbola13@gmail.com

Sources:
https://en.wikipedia.org/wiki/MongoDB
https://robomongo.org/ - image source.

Discover and read more posts from bello ajibola
get started
post commentsBe the first to share your opinion
Show more replies