

On the lower right corner, you will see a button 'Environment Variables.'.You will see an option 'Edit the system environment variables'.To make it easier to run server in future, press windows key and type environment variables.Go to C:\Program Files\MongoDB\Server(Version)\bin. Now move to directory where monodb server is installed.Go to C drive, make a folder named data and inside that create another folder named db.Once done, follow these steps to get your server running. Lets remove all data in C:/data/db and restart mongoDB ( copy old data to new folder and back it up after restart mongoDB )ĭownload MongoDB Community Server from the link. Here is it : C:\mongodb\bin\mongod.exe –dbpath=C:/mongodb/data/db BAT file to start mongoDB without installĬopy and paste to notepad and save file with filetype ".bat" here is ex with "mongodb" nameġ.1 : Make directory name "data" in C:/ ( so we have C:/data ),after that make directory "C:/data/db" ġ.2 : run in CMD ( Run as Admin) command -> "echo logpath=C:/mongodb/log/mongo.log > C:/mongodb/mongodb.cfg" ġ.3 : run in CMD (Run as Adin) command -> "C:/mongodb/bin/mongod.exe -config C:/mongodb/mongod.cfg -install" Ģ: a small. Then changed name to "mongodb" or something what u want. First of all : copy mongoDB install folder into C:/ location
