0% found this document useful (0 votes)
28 views14 pages

MongoDB Installation and Connecting Server

This document provides a step-by-step guide for installing MongoDB on Windows 10, including the installation of the MongoDB server and Mongo shell client. It details the download process, installation steps, and how to set up environmental variables for the Mongo shell. Additionally, it includes commands for verifying the installation and creating a user in a MongoDB database.

Uploaded by

Hephzibah Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views14 pages

MongoDB Installation and Connecting Server

This document provides a step-by-step guide for installing MongoDB on Windows 10, including the installation of the MongoDB server and Mongo shell client. It details the download process, installation steps, and how to set up environmental variables for the Mongo shell. Additionally, it includes commands for verifying the installation and creating a user in a MongoDB database.

Uploaded by

Hephzibah Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Installation of MONGODB on Windows 10

1)Install MONGODB server


[Link]
In the page select MongoDB Community Server

Click on Select package


Select the version
Select the operating System platform for windows as Windows X64
Select the package msi
Click on download

[Link]
Once Download completed
click on msi to start installation

[Link]
Mark the check box for Accept the terms in the license Agreement
Click-NEXT

SELECT COMPLETE
CLICK ON NEXT

[Link]
SELECT Run service as NetworkService User
CLICK ON NEXT

CLICK ON NEXT

[Link]
CLICK ON INSTALL
Click on ok (allow to install popup)

[Link]
CLICK ON START ----------TO START WITH MongDBCompass(UI version)
(server)
Otherwise close the welcome compass window

[Link]
Click on finish

2) Install MONGO shell- client (client)

Download the MONGO shell


[Link]

Select the Version


Select the Platform-Windowsx64
Select Package as Zip
Click on Download

[Link]
Once the downloaded is completed
Extract the folder where you want
Copy the Extracted folder to C: drive (Not mandatory to paste the
folder To C drive .It is convenient to take the path to create
environmental Variables)

[Link]
Run [Link]
Create Environmental Variables for Mongoshell client

Search menu type:env

[Link] on Environmental Variables


[Link] on path in System Variables(2nd section)
[Link] on edit

[Link]
[Link] on NEW in Edit Environmental Variables

[Link] the path of MongoDB server bin path


Go to C:\Program Files\MongoDB\Server\7.0\bin
Copy the path : C:\Program Files\MongoDB\Server\7.0\bin
"C:\Program Files\MongoDB\Server\7.0\bin"

6. Paste path of MongoDB server bin path in Edit Environmental


Variables as shown below:

[Link]
[Link] OK
[Link] add new env variable for mongodb sheel also(Repeat steps
from 2nd, 3rd and 4th)
[Link] the path of Mongoshell bin path
C:\mongosh-1.10.6-win32-x64\mongosh-1.10.6-win32-x64\bin
10. Paste path of Mongoshell bin path in
Edit Environmental Variables as shown below:

[Link] ok
[Link] ok

[Link]
[Link] ok

Verify the MongoDB server is running


[Link] to CMD
GIVE COMMAND : mongod --version

Connecting MongoDB Server using MongoShell


[Link] to CMD
[Link] command: mongosh

[Link]
It shows server is connected
3. show dbs;(command to see the databases available)

[Link] new user for a particular Database


->Go to Database COLLEGE
use COLLEGE

->Create user for database COLLEGE.


[Link]({
createUser: "user1",
pwd: "123",
roles: []
})

[Link]
USERS for database COLLEGE
[Link]()

-
-

Installation of MONGODB on UBUNTU


[Link]

[Link]

You might also like