Working with Rock Mongo

Working with Rock Mongo

RockMongo is a MongoDB administration tool with which you can manage your server, databases, collections, documents, indexes, and more. It provides a very convenient way to read, write and create documents. It's similar to the PHPMyAdmin tool for PHP and MySQL.

Loading RockMongo

You can download the latest version of RockMongo here:

Installing Rock Mongo

Once downloaded, you can unzip the package in your server's root folder and rename the extracted folder to rockmongo . Open any web browser and go to the index.php page from the rockmongo folder. Enter admin / admin as username / password respectively.

Working with Rock Mongo

We will now look at some of the basic operations that you can perform with RockMongo.

Creating a new database

To create a new database, click the Databases tab . Click on Create a new database . On the next screen, enter a name for the new database and click Create . You will see the new database added in the left pane.

Create a new collection

To create a new collection in a database, click on that database in the left pane. Click the New Collection link at the top. Specify the desired collection name. Don't worry about the other Is Capped, Size and Max fields. Click on Create . The new collection will be created and you will be able to see it in the left pane.

Create a new document

To create a new document, click the collection to which you want to add documents. When you click on a collection, you will be able to see all the documents in that collection listed there. To create a new document, click the Insert link at the top. You can enter document data in JSON or array format and click Save .

Export / Import data

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