Pages

Wednesday, March 14, 2012

mongo command line shell

> show dbs
Lists existing databases

> use [database-name]
Changes database. By default, test is opened.

> db.[collection-name].find()
Displays the collection's documents

No comments:

Post a Comment