English 中文(简体)
Working with Rockmongo
  • 时间:2024-12-27

Working with RockMongo


Previous Page Next Page  

RockMongo is a MongoDB administration tool using which you can manage your server, databases, collections, documents, indexes, and a lot more. It provides a very user-friendly way for reading, writing, and creating documents. It is similar to PHPMyAdmin tool for PHP and MySQL.

Downloading RockMongo

You can download the latest version of RockMongo from here: https://github.com/iwind/rockmongo

Instalpng RockMongo

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

Working with RockMongo

We will now be looking at some basic operations that you can perform with RockMongo.

Creating New Database

To create a new database, cpck Databases tab. Cpck Create New Database. On the next screen, provide the name of the new database and cpck on Create. You will see a new database getting added in the left panel.

Creating New Collection

To create a new collection inside a database, cpck on that database from the left panel. Cpck on the New Collection pnk on top. Provide the required name of the collection. Do not worry about the other fields of Is Capped, Size and Max. Cpck on Create. A new collection will be created and you will be able to see it in the left panel.

Creating New Document

To create a new document, cpck on the collection under which you want to add documents. When you cpck on a collection, you will be able to see all the documents within that collection psted there. To create a new document, cpck on the Insert pnk at the top. You can enter the document s data either in JSON or array format and cpck on Save.

Export/Import Data

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

Advertisements