Nearby lessons
3 of 22🗄️ MongoDB: Create & Drop Database and Collections
MongoDB provides commands to create, rename, and drop databases and collections.
It also includes help commands to explore all available operations easily.
List all databases on the server
Example01
Switch to or create a new database
Example02
Delete the current database
Example03
Create new collections
Example04
Rename a collection
Example05
Delete a collection
Example06
Show available database operations
Example07
Show available collection operations
Example08