Skip to main content

Posts

Showing posts from April, 2018

MongoDB with Php part 01

In this blog we can see how to install mongo db in windows and connect with compass and how to acess mongo using Php with composer.   Follow me  @  facebook      @linkedIn     Installing MongoDb: 1) download mongodb from its official site..( click here to download ) 2) click the .exe file and mongodb gets installed. 3) now goto the parent directory in which monodb is installed and create a directory called 'data' and inside the 'data' create a sub directory called 'db'. 4) now to intialize mongo variable goto the installed directory usually it will be "C:\Program Files\MongoDB\Server\3.6\bin" nad copy that path. 5) goto system properties->advanced system settings->environmental variables in this add this path as a user variables. 6) now open a terminal and type "mongod". it starts the mono database running on local host on the default port 2701.. 7) now open a new terminal and type "mongo" it connects with your mo