Mongo Shell Console

Start mongo console:

 

Show databases:

 

Select a database:

 

Show selected database name:

 

Drop database:

 

Show collections in selected database

 

Select first 10 records from person_account collection:

 

Drop collection:

 

Insert a file in database mydata using mongofiles:

 

Files will be added to collections: fs.chunks and fs.files
List files:

 

Dump databse bikeshop in directory mongo_dump:

 

List records where uploadDate is greater than 26/10/2012: