In this video, I am going to show How to Install MongoDB 6.0.6 Community Edition on Windows 10/11. We will also see How to Install MongoDB Shell for running queries. Also, I have shown different commands of MongoDB.
MongoDB is one of the most used, open-source document databases, and NoSQL databases. MongoDB is developed by 10gen. It is written in c++ and it is a document-oriented database. It uses the BSON format.
Useful Commands in MongoDB:
1. MongoDB - Create Database
use cscorner
2. If you want to check your databases list, use the command
show dbs
Your created database is not present in list. To display database, you need to insert at least one document into it
3. MongoDB - Drop Database
db.dropDatabase()
4. MongoDB - Create Collection
db.createCollection(name)
db.createCollection("students")
5. MongoDB-Create Document.
db.students.insert({"rollno":1,"name":"sunita"})
If the collection doesn't exist in the database, then MongoDB will create this collection and then insert a document into it.
6. MongoDB -Show Collection
show collections
7. MongoDB - Drop Collection
db.students.drop()
8. MongoDB - Query Document
db.students.find()
9. To display the results in a formatted way, you can use pretty method.
db.mycol.find().pretty()
This tutorial will provide you a good understanding of MongoDB concepts.
This tutorial is intended for students and new developers who want to learn MongoDB Database in easy-to-understand steps. This tutorial will provide you MongoDB concepts that will help you to get started with MongoDB quickly.
------------------------------------------------------------------------
Subscribe to my channel for more videos of programming and hit the bell icon to never miss an update in the future.
Also, don't forget to LIKE & COMMENT.
------------------------------------------------------------------------
Channel Subscription:
🔗 / cscornersunitarai
Java Programming Tutorial Playlist
🔗 • Java Programming Tutorial
Thanks for watching my videos till the end, if you like my work please do Subscribe, Like, Comment, and Share!!
------------------------------------------------------------------------
🎥 MY FAVOURITE RU-vid GEAR
www.amazon.in/...
------------------------------------------------------------------------
CONNECT WITH ME ON:
►Facebook - / cscornersunitarai
►Personal Facebook A/c - / sunita.sharmarai
►Instagram - / cscornersunitarai
►Telegram - t.me/cscorner
►LinkedIn - / cscornersunitarai
------------------------------------------------------------------------
#MongoDB #installmongoDB #nosql #mongoDB #HowToInstallMongoDBOnWindows10 #MongoDBTutorial #MongoDBInstallationOnWindows #MongoDBInstallation #MongoDBTutorial #MongoDBTutorialForBeginners #MongoDBCourse
#cscornersunitarai
how to install mongodb on windows 10,installing mongodb,how to install mongodb,mongodb,database,open source database,nosql,mongodb tutorial for beginners,starting mongodb linux,install mongodb on linux,data modelling,install mongodb,mongodb on windows,mongod,mongodb 6,mongo,install,windows 10,mongodb 6,community server,mongodb 6.0.6,mongodb installation,mongodb tutorial,create database,drop database,create collection,drop collection,cscornersunitarai,nosql database
Subscribe to CS Corner Sunita Rai for more videos!
Like! Subscribe! Share!
Stay tuned!
25 авг 2024