Mongodb

From Ultrapowa Wiki
Jump to: navigation, search
How to setup MongoDB



Downloads
  • Mongodb (here) (Community, windows server 2008 (default)
  • Robo3T (here)


Installation

  1. Install all the softwares with default diretories
  2. Create a folder (anywhere) that you won't delete with two folders :
  • db
  • log
  1. Go to ProgramFiles\Mongodb\server\3.4\bin\ (installaion folder), create mongod.cfg, open it with a text editor and copy :

systemLog:

   destination: file
   path: d:\yourpath\log\mongod.log

storage:

   dbPath: d:\yourpath\db
  1. copy the all the text, idk why it displays this like this
  2. yourpath is the directory of the 2 folders you created a few steps ago
  3. save the file
  4. open cmd as admin
  5. copy paste : "C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\3.4\bin\mongod.cfg" --install
  6. enter
  7. now copy paste in cmd : net start mongodb (net stop to stop the service)
  8. once started, open robot3T, connect to your db server
  9. create a new db with name: URS_DB
  10. now open it and click on collections
  11. right click and create Clans,and again Players (order and case Sensitive/caps)