MongoDB: how to create a new database After installation, test,admin and local are the default database.
As per the MongoDB tutorial, when we insert data in collection a database will be listed in show dbs command.
For a specific purpose, I want to create a new database but I did not find any information about creating a new database. I executed a command like create db dbname or create database dbname. For both of the statement I got below error:
SyntaxError: Unexpected identifier

Can I know what are the steps to create a database?
Just execute on shell "use dbname"
When you insert the first document on any collection you will see the db with "show dbs"