MongoDB is a non-relational database (NOSQL) based on distributed file storage, written in the C + + language, designed to provide scalable, high-performance data storage solutions for Web applications. MongoDB supports a very loosely structured data structure, which is a JSON-like Bjson format, so you can store more complex data types. The biggest feature of MongoDB is that the query language it supports is very powerful, its syntax is somewhat similar to object-oriented query language, it can implement almost the most functions of a relational database single table query, and it also supports indexing data.
MongoDB does not have the concept of rows and tables in relational databases, but there are concepts like documents and collections. Document is the most basic unit in MongoDB each document is identified with a unique ID, the document's properties are key/value key-value pairs, and the document can be nested within another document, so you can store more complex data types. A collection is the sum of many documents, a database can have multiple collections, and a collection can have multiple documents. --nodejs Combat
1.MongoDB Installation
Go to the official website, select the version you need to download, I choose to download the MSI installer.
After download run the installer, direct next, accept, will arrive at the step:
Select the above for a quick installation, the default path is C:\Program Files\mongodb, or you can select the following custom installation to install to the path of your choice.
After the installation is complete, open the cmd command line into the Bin folder under MongoDB.
CD Program Files\mongodb\server\3.2\bin
and set the database storage directory, as follows:
Mongod--dbpath E:\node\MongoDBdata
This installs successfully and starts the MongoDB database. Then enter http://127.0.0.1:27017/in the browser and you'll see a word like that in the browser.
Front Side Chicken Road--mongodb