MongoDB Introductory One

Source: Internet
Author: User
Tags install mongodb mongodb query

MongoDB Query Notes

  

MongoDB Configuration Instructions
Create a new MongoDB folder in the C packing directory-----> Create a new two folder under MongoDB Data folder Bin folder "Direct copy"
Create a new two folder DB folder and log folder under the Data-folder

C:\mongodb\bin>mongod.exe--dbpath "c:\\mongodb\data\db"--logpath "c:\\mongodb\
Data\log\mongodb.log "
**************************************
C:\mongodb\bin>mongod.exe--dbpath "c:\\mongodb\data\db"--logpath "c:\\mongodb\
Data\log\mongodb.log "

  

Open in New window
C:\mongodb\bin>mongo.exe--port 27017

Show DBS----Display Database
cd--changing file paths
*******************************************************
MongoDB Configuration Tutorial
First step: Install Mongodb-win32-x86_64-2008plus-ssl-3.4.2-signed.msi
Second step: Copy the bin file under MongoDB to the root of the C drive to create a new data folder in the bin's sibling directory---> Create a new db file and a log folder under the Data folder
Step Three:
CD c:\MongoDB\Bin command
Then Mongod.exe--dbpath "C:\\mongodb\data\db"--logpath "C:\\mongodb\data\log\mongodb.log"

Fourth step open a new window

CD C:\MongoDB\Bin

Then use Taobao

Show collections

Show DBS Display database data name

Insert a piece of data

MongoDB Introductory One

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.