1. Service Start-up
After downloading the installation steps, please see the MongoDB installation detailed tutorial
Start the serviceNET START MongoDB
Close ServiceNET STOP MongoDB
Start the client MONGO
MongoDB Shell
MongoDB Cluster Build-replica setConceptual knowledge, you can refer to my blog address:Http://www.cnblogs.com/zlp520/p/8088169.htmlI. Replica SET scheme (replica set or replica set):1. There are two ways to build a replica set:One: On a server,
See how MongoDB is usedVersion is 3.6.0The options option refers to the user name and passwordAddress database addresses database format is IP: Port/Database 192.168.0.5:999/fooLink local database test execution MONGO 127.0.0.1:12345/testIndicates a
First, installationThis I also do according to other people to do, reference to http://blog.csdn.net/IT_wanghe/article/details/53884229.Download in the official website is not a hassle, is unable to download, after registering the account directly
3.4.3.2 modifierFor the MongoDB database, the modification of the data will involve the change of the content, the change of the structure (including the array), so when MongoDB is designed to provide a series of application of the modifier, then
MongoDB RelationshipMongoDB relationships represent the logical interconnectedness of multiple documents.Links can be established between documents through embedding and referencing.the relationships in MongoDB can be:
1:1 (1 to 1)
1:
Shell command manipulation syntax is similar to JavaScript, in fact, the bottom of the console query statements are done with JavaScript script. With the shell command, you need to start Mongo.exe.Common shell commands are as follows:1. Querying all
One, Mongodb projectionProjection means that you select only the data for the field you want, rather than selecting the data for the entire document field. (That is, return the specified field)The second parameter of the Find method is the Set field
Original: http://blog.csdn.net/congcong68/article/details/45012717A Brief introductionDb.collection.group () uses JavaScript, which is subject to some performance limitations. In most cases, the $ group in aggregation pipeline provides an
Use aggregations, db. Collection name. Aggregate ... Rather than find.Pipelines are typically used in UNIX and Linux to use the output of the current command as a parameter to the next command.MongoDB's aggregation pipeline passes the MongoDB
Http://www.cnblogs.com/best/p/6212807.htmlOpen the MongoDB installation directory such as "C:\Program Files\mongodb\server\3.4\bin" and create a new Mongo.config file in this directory with the following file contents:# #数据库目录 # #dbpath =c:\data\db#
$push use:Add 2 new members to an array using $pushDb. Arraytest.updateone ({"Name": "Bill"},{$push: {"Address": {$each: [{"Street": "Xuhui"},{"Street": "Xingzhuang", "num" : 1}]}})View results: New data has been added.$slice is in $push to limit
$or and Index relationships:Create an index on the timestamp of the LEFTT collectionExecute $or statement: Db.leftT.find ({$or: [{"timestamp": 5},{"Age": Ten}]}). Explain (true), found that no index was usedTo re-create an index on ageRe-view the
Index detailsIndex managementSpatial index for (var i = 0; i) { Db.books.insert ({number:i,name:i+ "book"})}1. Create a simple indexData Preparation Index.js1.1. Check the query performance firstvar start = new Date ()Db.books.find ({number:65871}
Procedure for connecting ODBC to a database
We all know that databases are indispensable for any project. Common databases include MySQL, SQL Server, Oracle, and Access. Before operating databases, our programs, A step is to link to our
Description of DBUtils and connection pool, and description of DBUtils connection pool
### 01DButils tool class: three core classes
* A: The DButils tool class introduces three core classes.
* A: overview
* DBUtils is a practical tool for database
Tutorial on using special delimiters to process data in DB2, db2 delimiters
I received a request a few days ago, using the special symbol '|' as the field separator. I thought it was not done for a long time. Later, under the guidance of the team
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service