Click here to Skip to main content
15,890,512 members
Articles / Programming Languages / SQL

Management Studio for Mongodb, -Mongodb Part 3

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
28 Apr 2015CPOL2 min read 11.1K   3  
Management Studio for Mongodb, -Mongodb Part 3

I like command prompts, and CLIs at times, perhaps you too like them. But most of the time, I love to visualize stuff. For example, how do mongodb databases, collections and documents look visually? What if we can have a quicker simple way to visually work and manage our mongodb.

MSSQl is to SQL Server Management Studio as MySQL is to phpmyadmin (if I am not wrong :)), what about mongodb..?

Welcome Robomongo, which is a shell-centric cross-platform MongoDB management tool. You can download and install Robomongo from their website here, select your platform, download and basically go through the installation steps easily.

Some of the features highlighted from the websites include:

  1. Robomongo embeds or rather uses the same JavaScript engine that powers mongodb’s v2.2 shell, hence you can reuse your existing skills.
  2. You can open as many shells as you need pointing to a single mongoDB database or many shells for many different databases.
  3. Your code is executed statement by statement way.
  4. You get autocompletion for all objects including functions well known by JavaScript runtime, including autocompletion for databases, collections and even your document.

Once you are finished installing, ensure your mongodb instance is running. Follow the steps here to start mongod shell, once you are done take note of the port (default is 27017).

Then double robomongo to open it, and you will see the following screen:

robo_mongo_1

From the screen, you can see there is no connection, and so click on “create” link on the small child windows, and this presents you with the following screen.

robo_mongo_2

Provide a preferred name for your connection, in my case I gave it ‘Connection One’. Ensure that the address points to the server where your mongod instance is running and also the port is correct. In my case, I am using local instance running on port 27017.

You can test the connection by clicking the ‘Test’ button, which should tell you if the connection succeeded or not. In my case, I got a success like below:

robo_mongo_3

For now, I don’t have authorization to my mongodb, just click ‘close’, and then “save”, make sure your screen at this point is similar to this one:

robo_mongo_4

You can see our connection is listed. At this point, select “Connection One” and click on the “Connect” button. If you have done everything right, then your screen should look like:

robo_mongo_5

Voila! Here is your visual representation of your mongod instance, databases, collections, functions, documents etc. In my case, I expanded to see how documents are represented as below:

robo_mongo_6

So now you know! If you want to explore robomongo, just right click on any level node on the tree, and see what you can achieve. But I can assure you can create, update, list and delete documents. You can also create a database here, add table functions which are just but JavaScript functions. There will be more advanced posts to come and so keep watching!!

Again, happy coding nerdizzles :D !!

Image 7 Image 8

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO Sharelogic Technologies Limited
Kenya Kenya
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --