Downloading and Installing MongoDb On Windows
MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schema. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License (SSPL). [wikipedia].
Step 1
download mongoDb from here. Make sure MSI is selected as the package you want to download
step 2
Installing MongoDb
- now head over to your pc download directory. look for the mongodb installation wizard, double click to start installation process.
2. Click next to begin installation
3. Accept license agreement and click next
4. choose the complete setup option, then click next
5. Select “Run service as Network Service user”
6. Click Install to begin installation
7. Installation begins. Click Next once completed
8. Click the finish button to complete installation
MongoDB also comes with Compass, which is a graphical tool.
Once installation is complete, we’ll need to set up MongoDB on the local system.
To run the mongo shell, you’ll need to go to the monogdb location.
here is the path to mongodb location:
c:\Program Files\MongoDB\Server\4.2\bin
now head over to windows command prompt and run as administrator
now, in the terminal lets navigate to the mongodb folder
cd c:\Program Files\MongoDB\Server\4.2\bin
Start the mongodb daemon by running:
mongod
Connect to MongoDB using the Mongo shell While the MongoDB daemon is running, from a different Command prompt window run
c:\Program Files\MongoDB\Server\4.2\bin\mongo
To verify if the setup was successful
mongo --version
Okay guys, we’ve come to the end of our long session. Go ahead and build amazing stuffs with Mongodb.
you can follow on twitter @Aboki_frontend