Create a Mongodb Database
Because Mongodb is not a relational database file, it does not actually have the so-called "Database" concept in traditional relational databases, but don't worry. When you add data for the first time, mongodb will be saved
In MongoDB, the service start by default is not permission authentication, in terms of security, this is certainly not possible, so need to add permission validation.Since it is necessary to do permission verification, it must have a user, so the
MongoDB is a NoSQL database system: A database can contain multiple sets (Collection), each set corresponds to a table in a relational database, and each collection can store a set of records identified by the column, which is freely defined, very
MongoDB default is not authentication, default no account, as long as the service can be connected to the database for a variety of operations, MongoDB believes that the best way to security is in a trusted environment to run it, to ensure that the
Once with MySQL database, all day is to write a large heap of SQL statements. To remember that these sqlkeyword are going to take a few days, write the eggs have exploded, when the contact with MongoDB, found not to write SQL, instantly think tall,
Windows 10 Home Chinese version, MongoDB3.6.3,ObjectiveWhen you start a MongoDB server based on a blank folder (holding data) using the Mongod command, if you do not use the--auth option, any client can connect to the MONGODB server without
Data storage is a very important part of the entire system, in MySQL, Redis has a master-slave architecture, to a certain extent, to ensure the security of data and high availability, and MongoDB is also the implementation of this way. Master-Slave
After MongoDB is started successfully, open a command line window and enter mongo to perform database operations. Enter help to see the basic operation command: showdbs: display the Database List showcollections: display the set in the current
I have previously written an article on mongodb multi-server configuration, which is in master-slave mode. For details, refer to mongodb master-slave configuration. Master-slave mode, cannot automatically implement failover and recovery. Therefore,
MongoDB introduction:
Non-relational databases are mainly used to solve the following problems:
A) High database concurrency requirements
B) Demand for efficient storage and access to massive data
C) high scalability and availability
MongoDB database OverviewMongoDB is a high-performance, open-source, and non-pattern document-type database. It can be used in many scenarios to replace the traditional relational database or key/value storage mode. MongoDB is developed in C ++
Recently has been busy state, English class has not been recently, this should be lazy, wow ah oh; insist...insist...insist. Only after the busy time ... Say it today. Create a database in MongoDB ... Creating a database Check the currently selected
Grammar
The syntax format for MongoDB database deletion is as follows:
Db.dropdatabase ()
Delete the current database, which is test by default, and you can use the DB command to view the current database name.
Example
The following example we
GrammarThe syntax format for MongoDB database creation is as follows:Use database_nameIf the database does not exist, create the database, or switch to the specified database.InstanceThe following example we created the database Youj:If you want to
Today while the weekend hollow, the recent learning of the MONGODB database commonly used commands to make the following collation, convenient work to view
The logical structure of MongoDB is mainly composed of three parts: document,
I. Installation and deployment 1, server-side installation1. Download (official website https://www.mongodb.org/downloads/#production), fool installation, pay attention to modify the installation path.Directory structure after the installation is
About MongoDB IntroductionMongoDB 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. The data structure it supports is very loose and is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.