Last active
July 1, 2024 01:25
-
-
Save mw866/bfc084c78b949317e5520dcf7254c269 to your computer and use it in GitHub Desktop.
#mongoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show dbs | |
use testdb | |
db.dropDatabase() | |
db.test.find( {} ) | |
db.test.remove({ "_id" : ObjectId("622fe6b767d3cd1a9e5d5eec") }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service mongo start | |
sudo systemctl enable mongod.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongosh "mongodb://localhost:27017" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment