MongoDB's Learning and use

Source: Internet
Author: User
Tags mongodb client win32

First, download MongoDB.

Website Download,

or http://www.360sdn.com/opensource-datasource/2015/0403/5584.html Download:

Http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.6.9.zip

Second, start

Refer to: http://www.cnblogs.com/huangxincheng/archive/2012/02/18/2356595.html

①: Before starting, we will assign a folder to MongoDB, which is named "DB", which is used to store mongodb data.

②: Enter CMD,CD to find the bin path to "MongoDB" and run the Mongod Open command while using--dbpath to specify the data storage location as the "DB" folder.

After that, each time you start MongoDB, enter the following command, and once the DOS window is closed, the MongoDB database shuts down automatically. 】

CD D:\05-tools\06-mongdb\mongodb-win32-x86_64-2.6.6\bin
Mongod--dbpath D:\05-tools\06-mongdb\data\db
Three, the basic operation

Premise: Directly under the installation directory bin, double-click Mongo.exe, or open a CMD,CD to the bin directory, enter the MONGO command opens the shell.

Additions and deletions to check:

<1> Insert Operations

<2> Find operations

① "_id": This field is the default GUID of the database, the purpose is to ensure the uniqueness of the data.

② to write documents strictly in the form of Bson

<3> Update operation

The first parameter of the Update method is criteria for lookup, and the second argument is the updated value.

<4> Remove operation

Iv. Using Visual Tools

MongoDB client MongoVUE1.6.9 Green cracked version

MongoDB's Learning and use

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.