Introduction to MongoDB
- Open Source, Document Oriented NoSQL Database Management System.
- Document Oriented means it stores data in the form of BJSON document
- It is scalable, flexible and supports unstructured and semi-structured database.
Terminology
- A database contains multiple collections. Example: Student Collections, Teachers Collections, Courses Collections
- A collection contains multiple documents in the form of BJSON. So, Mongodb is called document oriented database.
- A document can be schemaless.
- In mongodb we have a storage engine (Wired Tiger).
Installation
- Download mongodb database server - https://www.mongodb.com/try/download/community
- Download mongodb shell - https://www.mongodb.com/try/download/shell
- Download mongodb database tool - https://www.mongodb.com/try/download/database-tools
- Check the version of mongdb after downloading:
mongod --version
- Now start the database server.
sudo service mongod start
mongosh
show dbs