Over a million developers have joined DZone.

MongoDB on Windows in 5 Minutes

DZone's Guide to

MongoDB on Windows in 5 Minutes

· Database Zone ·
Free Resource

MariaDB TX, proven in production and driven by the community, is a complete database solution for any and every enterprise — a modern database for modern applications.

In this 5 minute post, we will describe a quick start for MongoDB on Windows. I will show you how 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 the folder to mongodB

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


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,


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


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


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


By default, It connects to database test


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.


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

I hope this post is useful. Thanks for reading


MariaDB AX is an open source database for modern analytics: distributed, columnar and easy to use.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}