MongoDB Basics

MongoDB Basics
1. How to create a new database in Mongo DB ?
use

2. How do we know the current database that is being worked on ?
db













3. show dbs command lists out all databases in MongoDB

4. In MongoDB the defaut database is called 'test'

5. "db.dropDatabase()" command is used to drop the database. 6. "db.getCollectionNames()" command is used to list all collections in the database.

No comments:

 My Attempt to learn AI  GPT Generative Pretrained Transformer Created by Google in 2017 with the publication of the paper "Attention ...

Popular in last 30 days