Articles → MONGODB → Database Operations In MongodbDatabase Operations In MongodbIn this article, we will discuss database operations in MongoDB.Show The List Of Databases Use the following command to get the list of databases: -show dbsPlease note that the syntax is case-sensitive.Click to EnlargeSwitching To The Database You can use the following command to switch to the database.use <database_name>Please note that even if the database does not exist, still you can switch to the database.Click to EnlargeIn the above picture, the database admin1 does not exist but still you can switch to the database and perform operations.Posted By - Karan Gupta Posted On - Thursday, February 2, 2023 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
show dbs
use <database_name>
Query/Feedback