MongoDB is famous NoSQL database. NoSQL database stores data in JSON format in text file or similar. These are very famous now a days and used widely because reading data from a NoSQL database is much much faster than a RDBMS like SQL Server, MySQL or other.
- RDBMS > Database > Table > Row
- NoSQL > Database > Collections > Documents
Installation
- Install it on windows by it's windows installer.
- It will be installed at C:\Program Files\MongoDB.
- Go to bin foloder C:\Program Files\MongoDB\Server\3.0\bin. Here you will see bunch of executables.
- You will need to work with only mongod.exe and mongo.exe.
- mongod.exe - runs the actual mongo db. ( this is the actual server)
- mongo.exe - used to connect with database of mongo db and perform add edit update delete operations.
- Run mongod.exe from command line (first it will ask for a folder C:\data\db to store mongo database data. So create those folders.)
- Run mongod.exe again. Now it will run and will be waiting for some connection.
- Now run mongo.exe from command line and create database or perform some other operations.
- You will see in that commend windows that is running mongod.exe is showing some logs. Its all done with setup now.