MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB is a product between a relational database and a non-relational database, and is the most versatile and most like relational database in a non-relational database.
Two commands:
Mongod.exe
Mongo.exe
A simple comparison between relational database and NoSQL database
|
Relational database: |
NoSQL database: |
1 |
Table |
Collection |
2 |
Yes |
Document |
3 |
Column |
Members |
Start MongoDB to configure the path
Mongod--dbpath d:\data\db
Comes with a question
"Mongod.lock is not empty problem solved"
Mongod--dbpath d:\data\db--repair
Connection service: (You need to open a second CMD window at this time)
Mongo
Querying all the Databases
Show databases
Switch to Admin->use admin
Close database service->db.shutdownserver () [Switch to admin before shutting down the database, i.e. use admin]
NoSQL (NoSQL = not-only sql), meaning "not just sql."
On modern computing systems, a huge amount of data is generated every day on the network.
A significant portion of this data is handled by the relational database management system (RDMBSS). The 1970 E.f.codd's paper "A Relational model of data for large shared data banks", which makes data modeling and application programming easier.
The application proves that the relational model is well suited to client server programming, far exceeding the expected benefits, and today it is the leading technology for structured data storage in network and business applications.
NoSQL is a new revolutionary movement in the database, and early on, there was a growing trend in the 2009. NoSQL advocates are advocating the use of non-relational data storage, which is undoubtedly a new kind of thinking injection, relative to the overwhelming use of relational databases.
MongoDB configuration, startup, shutdown