Show all available databases
Select a particular database to access, e.g. mydb. This will create mydb if it does not already exist.
Show all collections in the database (be sure to select one first, see above):
Show all functions that can be used with the database:
To check your currently selected database, use the command db
> db mydb
db.dropDatabase() command is used to drop a existing database
If you like this post, don’t forget to share 🙂