MongoDB on Windows quick start in 5 minute

In this 5 minute post, we will do quick start for MongoDB on Windows. I will show you the way to connect to MongoDB Server and to start the administrative shell.

Very first you need to download 64 bit binaries for Windows 64 bit from here . After downloading unzip downloaded ZIP file at any location of your choice. After extracting rename folder to mongodB

Next navigate to folder in which you unzipped the downloaded binaries. You will get below executable file downloaded.

image

Most important exe are, Mongod.exe to connect to mongo database server and Mongo.exe to start administrative shell.

By default MongoDB creates database and store data in Data folder inside C Drive. You need to create this folder manually. You need to create them as below,

image

You can connect to MongoDB server as below by executing mongod exe

image

Once server is started, you can start administrative shell as below by executing mongo command.

image

From administrative shell if you want to add two numbers, you can do that as below,

image

By default, It connects to database test

image

If you want to insert data you can do that as below, below command will create a database called debugmode [only when first row is inserting] and then add name as dj.

image

You can explore Help option to know more about the executable and commands. In further article we will go deeper on same and explore working with MongoDB and CSharp.

I hope this post is useful. Thanks for reading

 

10 responses to “MongoDB on Windows quick start in 5 minute”

  1. […] you start working with MongoDB using C Sharp, I recommend you to read MongoDB on Windows quick start in 5 minute and download MongoDB for CSharp from […]

  2. […] you start working with MongoDB using C Sharp, I recommend you to read MongoDB on Windows quick start in 5 minute and download MongoDB for CSharp from […]

  3. […] you start working with MongoDB using C Sharp, I recommend you to read MongoDB on Windows quick start in 5 minute and download MongoDB for CSharp from […]

  4. […] you start working with MongoDB using C Sharp, I recommend you to read MongoDB on Windows quick start in 5 minute and download MongoDB for CSharp from […]

  5. […] MongoDB on Windows quick start in 5 minute and MongoDB with CSharp (Dhananjay Kumar) […]

  6. The easy way. Download Ascoos Web Server (free) that includes MongoDB

    http://sourceforge.net/projects/awserver/

  7. […] you start working with MongoDB using C Sharp, I recommend you to read MongoDB on Windows quick start in 5 minute and download MongoDB for CSharp from […]

  8. […] 5분이면 끝나는 windows에서의 mongoDB설치 […]

  9. […] 5분이면 끝나는 windows에서의 mongoDB설치 […]

Leave a comment

Create a website or blog at WordPress.com