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]