Home >>MongoDB Tutorial >Working with RockMongo

Working with RockMongo

Working with RockMongo

RockMongo is an administration tool to manage your server, databases, collections, documents, indexes, and much more using MongoDB. It offers a very user-friendly way for documents to be read, written, and created. The PHPMyAdmin tool for PHP and MySQL is similar.

Downloading RockMongo

The most latest version of RockMongo can be downloaded from here:

https://github.com/iwind/rockmongo

Installing RockMongo

You can unzip the package in your server's root folder once it has been downloaded, and rename the extracted folder to rockmongo. Open any web browser and from the rockmongo folder, access the index.php page. Please enter admin/admin as your username/password.

Working with RockMongo

Now we're going to look at some basic operations you can perform with RockMongo.

Creating New Database

To create a new database, pick Tab Databases. Click New Database Creation. Provide the name of the new database on the next screen and click Create. On the left panel, you can see a new database being added.

Creating New Collection

Click the database from the left panel to create a new set within the database. On top, click on the New Collection link. Provide the collection's desired name. Don't worry about the other IS Capped, Size and Max fields. On Build, click. A new collection will be created, and on the left panel you will be able to see it.

Creating New Document

Click on the collection that you want to add documents to in order to create a new document. You will be able to see all the documents inside that collection listed there when you click on a collection. Click on the Insert link at the top to create a new document. You can enter data from the document in either JSON or array format, and then click Save.

Export/Import Data

Click on the collection and then click on the Export/Import link on the top panel to import/export data from any collection. Follow the instructions below to export your data to a zip format and then import the same zip file in importing the data back.


No Sidebar ads