How to Configure MongoDB on Windows 7/8/8.1 & 10, 64-bit version
Hai friends, I am a blogger and a Node.js developer. This is my first blog post and today I am going to post about how to configure MongoDB on windows 64-bit version. Node.js is really cool platform to write back-end codes and node community is very fond of MongDB. It’s a NoSQL database and very easy to learn. But Installing Mongo on Windows can be little hazy if we didn’t follow some steps. But, here I am to explain everything in simple language, so let's get started.
2. Agree to the license agreement and install MongoDB in default location
3. Now the go to the folder where MongoDB is installed must be in “ C:\Program Files\MongoDB\Server\3.2\bin”, now copy paste the path.
4. Now go to the window’s search bar and type edit environment variable.
5. Now Click the First One “Edit the System Environment Variables”
6. After the pop up, window appears Click Environment Variables
7. Now select the Path variable and click edit
8. Now the browse to the path where MongoDB is installed (must be in “C:\Program Files\MongoDB\Server\3.2\bin”) and copy the path
9. After clicking edit click on new
10. Now paste the mongo path and click ok
11. Now go to C folder and make a new file data as “C:\data”
12. Now go to the data folder and make new folder “db” inside it as “C:\data\db”
13. All well done, now to to your command prompt and type mongod and press enter, if everything is correct, you will see
14. Now open another command without closing the first one and type mongo
15. Now use the command “show dbs” to show the database
16. “use abc” to create new database or switch to existing one called abc
Friends review it and if you find any problem, just comment and i will try to solve it.. Thanks

thanks
ReplyDelete