Powered By Blogger

Tuesday, April 4, 2017

MongoDB

MONGODB

Mongodb lets you develop faster deploy easier and scale bigger. Modern applications are more networked social and interactive than ever this is driving new requirements to support big data fast feature development and flexible deployment strategies.

Advantages of MongoDB

1) Schema less Database
2) No Complex joins
3) Structure of a single object is clear
4) Deep Query ability
5) Ease of Scale

Where to use MongoDB

1) Big Data
2) Content management and delivery
3) Mobile and social infrastructure
4) User data management
5) Data hub

How to install MongoDB? 

1) Download MongoDB by visiting https://www.mongodb.com/  



2) Install the setup which you can get downloaded from the website 




3) After you have successfully installed MongoDB to your computer you will be able to see all the mongodb files in the C drive -> Program files -> MongoDb. Now you should open the command prompt and go into the bin directory of that file.


4) Now we need to create a folder to add the data which we are going to add using mongodb. To do this we are going to create a folder in the C directory named data.



5) Now we can run the mongod command. Type "mongod" in the command prompt and hit enter.



6) To start a connection enter "mongo" in the command prompt and hit enter.


7) Now we are successfully connected to our database. 

No comments:

Post a Comment