Record of study, for reference only
MongoDB Boot:
MongoDB is installed in the D:\mongodb directory and opens a command-line window under the Directory Bin folder at startup
When starting the database, point the datapath parameter to the DB directory input Mongod--dbpath D:\mongodb\data\db
Open another command line window in the DB directory input: MONGO to start
Show DBS View Database
Show Collections View Collection
Use MongoDB Jump Database If the database does not exist then create (MongoDB is replaceable for the name of the database created)
Db.articles.find () finds the contents of the collection (articles is the name of the collection to be searched, replaceable)
Import data d:\mongodb\bin> mongoimport--db "blog"--collection "articles"--file "Articles.json"--jsonarray ("" is a replaceable database Replaceable collections can replace JSON files)
MongoDB Simple primary operation