Simple command Used to create database in MongoDB
- First Open terminal and open mongoDB shell.
- run this command to create database
use mydatabaseReplace "mydatabase" with the name of actual database.
To confirm that the database has been created, you can run this command-
dbShow the name of current database which you are using.