Simple understanding and basic operation of mongodb

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()

Read More: