Basic use of mongoDB

Source: Internet
Author: User
Non-relational databases have developed rapidly a few years ago and have never been engaged in class development before. Therefore, they have started learning non-relational databases. As I chose mongodb for development, I will share my learning experience. 1. Download www. mongodb. orgdownloads from mongodb.

Non-relational databases have developed rapidly a few years ago and have never been engaged in class development before. Therefore, they have started learning non-relational databases. Because of the need for development I chose mongodb to learn, Below share my learning experience 1. mongodb database download http://www.mongodb.org/downloads this is,

Non-relational databases have developed rapidly a few years ago, and have never been engaged in similar development before. Therefore, they have started learning non-relational databases. As I chose mongodb for development, I will share my learning experience below.

1. Download mongodb Database

Http://www.mongodb.org/downloads

Yes, but no one can afford the download speed. We recommend that you do not download it from the official website.

2. How to start or stop mongodb

It is troublesome to start mongodb, because the program will not create a data/db directory for us, windows will not be so linux will not, we can manually create this directory, the directory location is not limited. As shown below:

Now we can start the database. I specify the database file directory at the same time at the startup. You only need to enter the bin directory to execute the command. The command is as follows: <喎?http: www.2cto.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + fingerprint + cgo8cd7g9lavs8m5prxevefd5sjnz8kjuw.vcd4kpha + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140329/2014032909112525.jpg" alt = "\">

Another simple method is to configure mongodb in path first, as shown below:

After creating a new txtin writing mongod.exe -- dbpath = D: \ grailsenv \ mongodb-win32-i386-2.4.9 \ data \ db, after the file suffix changed to bat after double-click to start mongodb

If you want to stop mongodb, you can simply close the window or use the ctrl + c command.

3. Connect to mongodb using mongovue as the client

This tool seems to be used by a lot of people, but it is a pity that the software is charged, you can go to the Internet to find information to crack, this tool is easy to use, you will find it

If there is also a cmd.exe in the binary directory, you can also use this command.


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.