What is MongoDB?
MongoDB, written in C++ language, is an open source database system based on distributed file storage.
Adding more nodes guarantees server performance under high loads.
MongoDB is designed to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB stores the data as a document. The data structure is composed of key values (key=> Value) pair composition. MongoDB documents are similar to JSON objects. Field values can contain other documents, arrays, and arrays of documents.
The main features
1.MongoDB is a document-oriented database, which is relatively simple and easy to operate.
2.mongo supports rich query expressions. The query directive USES JSON-like markup to easily query objects and arrays embedded in the document. 3.MongoDB allows the script to be executed on the server side. A function can be written in Javascript to be executed directly on the server side, or the definition of the function can be stored on the server side for the next direct call. 4.MongoDB supports a variety of programming languages :RUBY, PYTHON, JAVA, C++, PHP, C# and other languages.
5.MongoDB installation is simple.
You can download the installation package, in directing a website address is:
https://www.mongodb.com/download-center#community.
The syntax format of MongoDB database creation is as follows:
use DATABASE_NAME
If you want to see all the databases, you can use the show DBS command:
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
>
The syntax format of MongoDB database deletion is as follows:
db.dropDatabase()
The createCollection() method is used in MongoDB to create collections.
Grammar format:
db.createCollection(name, options)
The drop() method is used in MongoDB to delete collections.
Grammar format:
db.collection.drop()
div>
Read More:
- C# SevenZip simple operation
- Basic formula of logarithm operation
- Error in Git operation: http basic: access denied solution
- VTK cultivation 26: basic operation of image_ Three dimensional image slice extraction
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- Python: Understanding__ str__
- Deep understanding of async await asynchronous programming synchronization
- The image operation of MATLAB — every detail operation of colorbar
- Solution to “550 create directory operation failed” in FTP operation file
- [Solved] MongoDB Insert Data Error: OperationFailure: Authentication failed…
- E11000 duplicate key error collection in mongodb
- Summary of OpenGL simple solar system simulation
- Simple use of namedparameterjdbctemplate of spring
- To the brothers who encountered simple bind failed 192.168.1.×××: 636
- Simple solution for node sass installation failure
- Mongodb connection authentication auth failed solution
- Error report of mongodb startup under Linux
- Simple Python crawler exercise: News crawling on sohu.com
- Introduction of Hadoop HDFS and the use of basic client commands
- Simple license plate recognition based on Halcon