Installation and testing of MongoDB

Source: Internet
Author: User
Tags mongodb
First, prepare

First in Google or Baidu search "MongoDB", into the official website (https://www.mongodb.com/) to download.


second, the installation

Select a custom configuration and enter the installation path.


The installation path C:\Program Files\mongodb\server\3.6\bin, there are many MongoDB executable files.


Note: Mongo.exe is responsible for the use of the database, Mongod.exe is responsible for the boot, MongoDB service program, Mongodump.exe is data backup, Mongoexport.exe data export, mongoimport data import, Mongorestore.exe data Also Original.

in the bin directory, press and hold "shift+ right mouse button" to open the command line directly from this directory.

To run MongoDB, you need to create a new folder of data (wherever it is built); In the data directory, in a new DB folder, for storing database-related information and configuration;

Start MONGOBD;


Connect with MongoDB's command-line program:


In inserting a data to the test database error: E QUERY thread1 syntaxerror:missing; Before statement @shell: 1:19

Cause: When inserting a dictionary type, the braces are wrapped (embarrassed ...). )


three or one simple configurations

Because the command line starts MongoDB too inconvenient, try to add it to the service and click Start from the service:

To run a command with an administrator:

1 in the Data directory, new logs folder, storage log;

2 new text file Mongo.log, this is the MongoDB log file;

3) Specify log files, etc.


Note: Be sure to use the command line with administrator privileges.

4 Computer--right key--"management-" service


5) Verify


Iv. recommended Visualization Tools

MongoDB Visual Client Tools recommended: robo3t-1.2.1

Download Address: Https://robomongo.org/download


v. Supplemental Ubuntu installation

Ubuntu does not need to create data/db, guidance DBPath, direct start MongoDB.


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.