初始化数据库
use project
db.createCollection(“users”)
show collections
show collections
db.users.insertOne({name:'geekxia '})
db.users.find()
show dbs
文章功能:
show dbs
use project
db.createCollection(‘articles’);
show collections
插入文章后,查询:
db.articles.find()