Mongo introduction
MongoDB is a product between relational database and non-relational database. Among non-relational databases, it has the most rich functions and is the most like relational database. The data structure it supports is very loose, in jSON-like Bson format, so it can store more complex data classes. The biggest feature of Mongo is that the query language it supports is very powerful. Its syntax is somewhat similar to object-oriented query language. It can almost achieve most of the functions similar to single table query of relational database, and it also supports data indexing. It is characterized by high performance, easy deployment, easy use, and very convenient data storage.
The website address
www.mongodb.org.cn/
The installation package
Link: pan.baidu.com/s/1iwJ7vnSZ… Extraction code: 84N0
Step1: start the installation, you can choose the installation path, click next next.
Step2: configure environment variables
After the installation is complete, find the installation directory, go to the bin directory, and copy the directory. Add the path to the system environment variable.
Step3: Verify the success
Open the cli and enter mongo. If the following information is displayed, the installation is successful.
Start the mongo
1. Create a folder to store data. It is not recommended to store data in drive C, and the name cannot contain Chinese characters or Spaces.
Mongod –dbpath E:\mongoDB_data
3. The startup is successful.
Connect to mongoDB(note: the mongoDB server needs to be enabled)
1. Connect to the local client mongo by default
2. Connect to the remote database client: Mongo IP: port number For example, run mongo 192.168.28.1:27017. The connection is successful.