How to Install MongoDB on Windows

MongoDB is  open source platform independent document based database and it uses JSON-like documets. Further MongoDB provides scalability and flexibility that you can quering and indexing. MongoDB is free and open-source. Versions released prior to October 16, 2018 are published under the AGPL. All versions released after October 16, 2018
You can downlaod MongoDB using this link.(https://www.mongodb.com/download-center/community)
image
Step 1:- Right click on the setup file and click install.
image
Step 2 :- Click Next.
image
Step 3:- Click next to agree to terms and conditions.
image
Step 4 :- You can select complete installation or Custom Installation. If you want to change installation location you should select custom installations.
image
Step 5 :- Click on Install button to install
image
image
once finished appears the below screen
image
Configuration steps of MongoDB
Untill you configure the mongoDB, you can not see the service in the windows services.
So you you need to create two folders for store data and log of your database.
In my case I have created two folders in the D drive.
Data folder :-  D:\mongo\data\db
Log Folder :-   D:\mongo\log
image
Open CMD as Administrator and go to installation location as below.
image
Phaste teh below command to start the Mongo DB Service
mongod --logpath "D:\mongo\log" --logappend --dbpath "D:\mongo\data\db" --directoryperdb --install
image
Then you can see the MongoDB service in the Windows service and you can start service.
image
To start MongoDB go to bin folder using CMD and used below command.
image
Reference :- https://www.mongodb.com/
                       http://datatutors.blogspot.com/2016/04/install-mongodb.html
How to Install MongoDB on Windows How to Install MongoDB on Windows Reviewed by Pubudu Dewagama on 10:56:00 PM Rating: 5

1 comment:

  1. Genexdbs offers database administration services to help businesses streamline their processes. "Remote" refers to services provided remotely by a company.Database Training

    A third-party company provides remote DBA services, which monitor and administer the designated database server installations in accordance with established standards. The database administrator typically monitors space usage, memory levels, and CPU usage, checks error log alerts, and verifies backups.
    Genexdbs database monitoring can be done remotely in a few ways. Monitoring can be done interactively for each connection. A DBA can connect to a database and review its performance remotely. An alternative is to write a script that collects system performance and health data, which is then sent to the database administrator for review.

    The respondents were asked to rate the importance of each of the following to their organisation # for using remote DBA support:

    ReplyDelete