MongoDB Basic Introduction Installation and use

Source: Internet
Author: User
Tags install mongodb mongodb server robomongo

MongoDB has become increasingly a database of processes and mainstream, for two reasons: the first is technical advantage, the second is convenience, personal use deployment is very convenient.

the pros and cons of MongoDB, and usage scenarios

Advantages:

Document-oriented storage (free to read high, no need to define the structure of the table, save-to-use)

Higher write load, insert, change fast

Efficiently store binary Large objects (photos, videos, etc.)

Replication and Failover Support

Auto-sharding Automatic sharding supports cloud-scale scalability

Disadvantages

Do not support things

High occupancy space

Usage Scenarios

So MongoDB is better at dealing with large numbers of degrees of freedom high-cut unimportant forms.

Installation section

1, first to go to the official website to download the installation package, enterprise and Community Office can be, the current Enterprise Edition is also free to use no restrictions,:https://www.mongodb.com/download-center#enterprises

Select the Enterprise Edition, fill out the information, go through the download process,

Second: Because the official website is relatively slow, and need to fill in personal information (rather troublesome), so, I prepared for everyone Baidu network disk download link, to choose, the address is as follows:

Baidu Cloud Link (mongodb-win32-x86_64-enterprise-windows-64-3.6.3-signed.msi): https://pan.baidu.com/s/ 1GNK80UA6KHOGMS3WA2ZPMW Password: bhxn

2, the next end of the installation package is relatively simple, the next step to install MongoDB server side, installation directory, select the default path: C:\Program files\mongodb\server\3.6 (later), manually create two directories in the C drive: C:\data\db and C:\data\log,

3. To register MongoDB as a Windows service, you need to execute three commands in the cmd command window:

> CD C:\Program Files\mongodb\server\3.6\bin

> Mongod.exe–logpath "C:\data\log\mongodb.log" –logappend–dbpath "C:\data\db" –servicename "MongoDB" –install

> net start MongoDB

Performed three times, respectively, for installation success:

To this, it has been and started MongoDB successfully.

Use

Install the above server side, if you are selected by default configuration will install the official MongoDB Connection client, but personally feel not very good, today to you all recommend a oneself feel very need to use the connection tool: Robo 3T (previously called Robomongo)

: Https://robomongo.org/download

The connection interface is as follows:

Click Create to fill in the native ip:127.0.0.1, other do not need to modify, click Test, such as Display connection success, click Save, connect to the MongoDB database.

Show

It has been installed successfully.

Double-click the table structure to make conditional queries, and use Ctrl+r shortcut keys to quickly execute SQL commands.

MongoDB Basic Introduction 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.