1. Installation EnvironmentDownload the latest version of MongoDB on the official website and download the correct MongoDB version according to your own version of Windows. After downloading, double-click the 32-bit or 64-bit. msi file and follow
Basic syntaxThe 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 Coderschool:>
1. List all databases>show DBS2. Using the database>use Memo3. List the collections of the current database>show Collections4. Displaying data currently in Operation>db5. List Users>show Users6. New Database and data collection>db>show DBS If you
Organize fromHttps://www.shiyanlou.com/courses/running/57Start$ sudo service mongodb startEnter the MongoDB command-line interface and exit at the command line by knocking exit$ mongoThe ture of the Boolean type in the experiment is replaced with 1,
This note aims to learn and summarize MongoDB for the HTTPS://WWW.SHIYANLOU.COM/COURSES/RUNNING/50 website. 1, Start MongoDBbecause the MongoDB service does not start up with the system, you need to start the MongoDB service first:
This is a creation in
Article, where the information may have evolved or changed.
Download the following software
Golang (compilation environment)
Revel (web framework)
MongoDB (Database)
Leanote (ant notes source version)
I. Installation
The blog has moved Https://www.tianmingxing.com
MongoDB is an open-source, document-oriented NoSQL (not only SQL) database written using C + +, and one of the most popular NoSQL databases. NoSQL Introduction
NoSQL means "Not just SQL", is the
ObjectiveMongoDB is a distributed file store-based database written in the C + + language and is a popular one in today's NoSQL databases, designed to provide scalable, high-performance data storage solutions for Web applications.MongodbBrief
Let's start by introducing the basic concepts of MongoDB:The left column is the term for the relational database, and the right column is the term NoSQL and MongoDB.Database:database DatabaseTable:collection Database Tables/CollectionsRow:document
Summary:
MongoDB 3.0 Security access control, in the addition of users above the 3.0 version and the previous version there is a big difference, here is the next 3.0 of the method of adding users.
Environment, testing:
After installing MongoDB,
An overview of the MONGODB replication setA replica set is an additional copy of the data that is the process of synchronizing data across multiple servers, providing redundancy and increasing data availability through a replica set to recover from
Summary:MongoDB 3.0 Security access control, in the addition of users above the 3.0 version and the previous version there is a big difference, here is the next 3.0 of the method of adding users.Environment, testing:After installing MongoDB, first
MongoDB Common commands:After the successful start of MongoDB, and then open a command line window input MONGO, you can do some of the database operations.Show DBS: Display database list use database name: Switch the current database, which is the
On a talk about MongoDB installation and management, which involves a number of concepts, data structure of other API calls, do not know it's okay, in fact very easy, this will introduce.1. DocumentationDocumentation is the core concept of MongoDB.
In the recent work need to use MongoDB, here to do some simple records, blog post content can be found in the official MongoDB reference manual, here is just a few summary and explanation.Installation Environment:Os:windows 7, 32-bitmongodb:3.0.6,
IntroducedReplication set (Replica sets) is a master/slave replication mechanism for asynchronous synchronization of the same data, so that multiple machines have more than one copy of the same data, due to the automatic failover and recovery
The first is the MongoDB user and permissions settings, if you do not set the user, the direct use of the MONGO command can enter the client shell interface to operate, but if not set up the user, the total feeling of something less, so after a half-
Although not a technical Daniel, but the team leader recommended to look at, and we are doing the project, similar to the resource center, involving a variety of weird data types of different sub-libraries, so so far has been used this way:①maindata
MongoDB multiple server configuration, previously wrote an article, is Master-slave mode, please refer to: detailed MongoDB master configuration. Master-slave mode, failover and recovery are not automatically implemented. Therefore, we recommend
Grammar
The syntax format for MongoDB database creation is as follows:
Use database_name
If the database does not exist, create the database, or switch to the specified database.
Example
The following example we created the database Runoob:
>
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.