MongoDB Installation and use

Source: Internet
Author: User
MongoDB Installation 1. General installation in C-drive: When installing MongoDB, choose Curstom Next Installation
Set up a data folder in the C drive with the data folder below the DB folder
Under the Bin folder of MongoDB, CMD executes: Mongod.exe--dbpath c:\data\db
Find Mongod.exe to start MongoDB appears 27017 successful
2. Missing DLL file, install Vcredist, put MongoDB uninstall;
MongoDB Simple usage:monogo.exe must open the status command without adding ";"
1. Execute under C-Drive bin: MONGO
2. Show DBS View Database
3. Use test enter the library db to view the current library
4. Db.aaa.indertOne ({name: "haha"})
5. Db.aaa.find View the contents of the library
6. Db.dropdatabase () Delete the library

MongoDB Installation 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.