Working with RockMongo - MongoDB

What is rockmongo?

RockMongo is a MongoDB administration tool which is used to manage server, databases, collections, documents, indexes, and many more. It offers a very user-friendly way for reading, writing, and creating documents and is similar to PHPMyAdmin tool for PHP and MySQL.

Downloading RockMongo

Latest version of RockMongo can be downloaded from here: http://rockmongo.com/downloads

Installing RockMongo

After the download is complete, package can be unzipped in the server root folder and then you can rename the extracted folder to rockmongo. Open any web browser to access index.php page from the folder rockmongo and enter admin/admin as username/password respectively.

Working with RockMongo

Let’s look at some basic operations which can be performed with RockMongo.

Creating New Database

Click on Databases tab to create a new database and then click Create New Database. In the next screen, enter name of the new database and click on Create. You can see that a new database is getting added in the left panel.

Creating New Collection

Click on that database from the left panel to create a new collection inside a database. Click on the New Collection link on top and provide required name of the collection. Don’t worry about the other fields of Is Capped, Size and Max. Click on Create. A new collection will be created and will be visible in the left panel.

Creating New Document

Click on the collection to create a new document in which you want to add documents. When you click on a collection, you will see all the documents within that collection listed there. Click on the Insert link at the top to create a new document and enter the document's data either in JSON or array format and click on Save.

Export/Import Data

To import/export data of any collection, click on that collection and then click on Export/Import link on the top panel. Follow the instructions to export data in a zip format and then import the same zip file to import back data.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

MongoDB Topics