How to install mongoDB on windows?

前端 未结 15 651
清歌不尽
清歌不尽 2020-11-29 14:55

I am trying to test out mongoDB and see if it is anything for me. I downloaded the 32bit windows version, but have no idea on how to continue from now on.

I normally

15条回答
  •  迷失自我
    2020-11-29 15:17

    Step by Step Solution for windows 32 bit

    1. Download msi file for windows 32 bit.
    2. Double click Install it, choose custom and browse the location where ever you have to install(personally i have create the mongodb folder in E drive and install it there).
    3. Ok,now you have to create the data\db two folder where ever create it, i've created it in installed location root e.g on E:\
    4. Now link the mongod to these folder for storing data use this command or modify according to your requirement go to using cmd E:\mongodb\bin and after that write in console mongod --dbpath E:\data it will link.
    5. Now navigate to E:\mongodb\bin and write mongod using cmd.
    6. Open another cmd by right click and run as admin point to your monogodb installed directory and then to bin just like E:\mongodb\bin and write this mongo.exe
    7. Next - write db.test.save({Field:'Hello mongodb'}) this command will insert the a field having name Field and its value Hello mongodb.
    8. Next, check the record db.test.find() and press enter you will find the record that you have recently entered.

提交回复
热议问题