MongoDB
Database Commands
Manage MongoDB databases and collections. Learn to list, create, and drop databases and collections.
8 commands
Pro Tips
Databases and collections are created automatically on first insert.
Use db.stats() and db.collection.stats() to view storage information.
Common Mistakes
dropDatabase() is irreversible. Always backup before dropping.