DZone
Cloud Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Cloud Zone > A Quick Guide to Installing MongoDB on Windows

A Quick Guide to Installing MongoDB on Windows

Dhananjay Kumar user avatar by
Dhananjay Kumar
·
Feb. 16, 12 · Cloud Zone · Interview
Like (0)
Save
Tweet
7.30K Views

Join the DZone community and get the full member experience.

Join For Free

in this 5 minute post, we will do a quick tutorial for mongodb on windows. i will show you the way to connect to mongodb server and to start the administrative shell.

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 the folder in which you unzipped the downloaded binaries. you will get the executable file downloaded (below).

image

the most important exe is, mongod.exe to connect to mongo database server and mongo.exe to start administrative shell.

by default, mongodb creates the database and stores data in the data folder inside c drive. you need to create this folder manually, as shown below.

image

you can connect to mongodb server as below by executing mongod exe

image

once the 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

source: http://debugmode.net/2012/01/21/mongodb-on-windows-quick-start-in-5-minute/

MongoDB

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Introduction to JWT (Also JWS, JWE, JWA, JWK)
  • API Security Weekly: Issue 165
  • 5 Best JavaScript Web Development Frameworks
  • Modern Application Security Requires Defense in Depth

Comments

Cloud Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo