Wednesday, 27 April 2016

How to install mongodb on windows7

1.Download the mongodb Zip file from the following link
      https://www.mongodb.org/dl/win32/i386

2.Create a new folder name as mongodb on C: or D: anywhere you want  and extract  mongodb zip or copy the upziped mongodb  files within the mongodb folder then create another folder within mongodb name as data.

3.Download the mongodb drivers from the following link
http://stackoverflow.com/questions/20390932/how-do-you-determine-correct-dll-for-mongo-php-extension

4.Just copy all drivers and put it on php ext folder then enable the file extention on php ini file.
   Ex:  extension=php_mongo-1.4.5-5.2-vc9.dll
          extension=php_mongo-1.4.5-5.2-vc9-nts.dll

 5.Open the command promt and type the following code
     C:\mongodb\bin>mongod --dbpath=c:\mongodb\data  --logpath=c:\mongodb\data\log.txt  --install
     C:\mongodb\bin>services.msc

6.Go to services.msc and start the mongodb services

Thats it instalation is over.

Now you can open command promt then check you connection
C:\mongodb\bin>mongo