jilohead.blogg.se

Mongodb compass console
Mongodb compass console





mongodb compass console

#Mongodb compass console how to

In this article, we learned how to quickly drop a database in MongoDB using the dropDatabase() function in MongoDB. MongoDB is a NoSQL, free, cross-platform, open-sourced database that can store any kind of data and not just in rows and tables. Enroll now and add a shining star to your data science resume! Build Your Data Science Career With Simplilearn Learn over a dozen of data science tools and skills with Data Science Certification and get access to masterclasses by Purdue faculty. Congratulations on the achievement! Related Topics Thus, the database will be successfully deleted. We see that the database does not exist anymore.Īll the above steps have been summarized in the following code snippet: Now that this database is connected, drop or delete it. The database that we need to drop exists, so let us go forward with the next step. We execute the steps mentioned above to perform this operation.

mongodb compass console

Let us consider that we need to drop the database named db1.

mongodb compass console

Let us now illustrate this process of dropping a MongoDB database through the implementation of an example. SyntaxĬheck the list of databases again now using the show command to confirm the deletion of the database. Syntaxĭrop the connected database using the dropDatabase() function. Select and connect to the database which is to be deleted using the use command in the MongoDB shell. List out all the available databases by using the show dbs command. In order to drop a database or delete a database in MongoDB, the following steps are followed: Step 1







Mongodb compass console