• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

MongoDB Database

MongoDB is an open-source document-oriented database. Document-oriented means it stores the data in a file. MongoDb comes under the category of NoSql database. It stores the data in BSON (Binary JSON) format. It can be accessed through javascript notation and comes with their own shell.

Database – It is a set of collections.

If you do a little research to find out how to create a database in MongoDB, you’ll find documentation for the function “db.createCollection()”. This is actually how you create a database, but it’s referred to as a collection in NoSQL.

To create a MongoDB database:

-“Use” the database.

-Create a collection in the database.

-Verify that you got what you wanted.

Learn MongoDB by Tekslate - Fastest growing sector in the industry.
Explore Online MongoDB Training and course is aligned with industry needs & developed by industry veterans.
Tekslate will turn you into MongoDB Expert.

Assume you have installed MongoDB successfully in your system. Go to the terminal (ctrl + Alt + T) and type mongo and press enter. It opens up a mongo shell.

xyz@xyz-300E4c-300E5c-300E7c:$ mongo
MongoDB shell version: 2.4.6
Connecting to: test
>

To check all the database

To view the output in proper format.
db.emp.find().forEach(printjson);
Summary
Review Date
Reviewed Item
MongoDB Database
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on MongoDB Database"

Leave a Message

Your email address will not be published. Required fields are marked *

Site Disclaimer, Copyright © 2016 - All Rights Reserved.