MongoDB - Create Database
If you want to check your databases list, use the command show dbs
Your created database (mydb) is not present in list. To display database, you need to insert at least one document into it.
MongoDB use DATABASE_NAME is used to create a database.
> use database_name
Let's take an example here
if we want to create a database name like school then
> use school
To see databases :
> show dbs
Your created database (mydb) is not present in list. To display database, you need to insert at least one document into it.
Comments
Post a Comment