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.
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:
Post a Comment