Subscribe / Unsubscribe Enewsletters | Login | Register

Pencil Banner

4 free, open source management GUIs For MongoDB

Rick Grehan | June 13, 2013
Genghis, phpMoAdmin, RockMongo, and UMongo free MongoDB database management from the command line.

Command. Choose Command, and RockMongo takes you out of the Databases breadcrumb trail and presents you with a different set of menus (a shift of context that can be initially confusing). A text box allows you to enter the BSON expression for a database command. In case you don't remember what those commands are (there are lots), RockMongo thoughtfully provides a link to the proper spot in the MongoDB documentation where you can peruse the entire list of MongoDB commands.

Execute. The Execute menu item opens a text box into which you can type JavaScript functions that call into MongoDB's JavaScript API. This is how, for example, you might enter a mapreduce operation on the database. Click another button, and RockMongo will even open a separate text box into which you can enter the BSON for arguments to be passed into the JavaScript function you define.

Transfer. The Transfer menu selection copies a database from one system to another. Specify the IP address of the target database's host, username, and password for authentication, select the collections to copy, and RockMongo will transfer from the source to the destination.

Import and Export. Choose Import or Export to copy documents into or out of a database collection. RockMongo performs import or export using JavaScript source that can be executed in the shell. For example, if you perform an export, you'll get a JavaScript source file that contains a series of db.getCollection.insert() functions whose arguments are the BSON of the exported documents. You can hand this source file to a MongoDB shell and quickly import the documents into a different database.

Review: 4 free, open source management GUIs for MongoDB
RockMongo allows queries to be entered and executed in either BSON or PHP associative array syntax. Here RockMongo is shown displaying the documents of a collection.

Other commands in the database menu let you perform user authentication, issue repairs on the database, or drop the database.

When you drill down to a single collection, RockMongo displays that collection's documents in the lower portion of the work area. A query text box is displayed in the upper portion. Each document appears in its own mini-window that's topped with a list of menu commands for operating on that document. You can update (edit) a document, delete it, add a new field, or duplicate it. (Duplicating a document produces a new document whose fields have the same values as the original, with the exception of the _id field.) There's also a Text menu item that, when clicked, displays the document in a text box, suitable for cutting and pasting.

 

Previous Page  1  2  3  4  5  6  7  8  9  10  11  12  Next Page 

Sign up for CIO Asia eNewsletters.