Mongodb storage structure: database > collection > document
mongo
two。 List the databases that exist
show dbs
use saber2pr
db.createCollection("qwq")
show collections
db.qwq.insert({name: "saber"})
db.qwq.find({name: "saber"})
db.qwq.find()
db.qwq.remove({name: "saber"})
db.qwq.remove({})
db.qwq.drop()
twelve。 Delete the specified database
use saber2pr
db.dropDatabase()