As of Sitecore 7.5, the 'Sitecore Experience Database' was introduced (xDB). The official xDB blurb is that 'xDB collects all your customer interactions from all channel sources in a real-time, big data repository.' In normal terms, it's real time analytics. In order for xDB to run quickly enough without adding an excessive amount of network traffic, Sitecore moved from the classic analytics SQL database and switched to a NoSQL approach, using Mongo. In today's guide, I'm going to quickly run through how to get Mongo up and running.

Get Mongo

The first thing you will need to do is get a copy of Mongo, get your copy here.

Install Mongo


When you run the installer, you'll be greeted with the usual welcome screen, click 'Next'


Agree to the T&C's sitecore_mongo_3

Select 'Complete' installation and then click 'Install'. Mongo will then go off and install all the files you need.

Configuring Mongo

Running Mongo is really easy, all you need to do is run 'mongod.exe' found in the Mongo bin folder. In my example with default locations, this is:

If you try running Mongo directly you should see a 'Data Directoy Not Found error, like so:


To get around this, you either need to create the default Mongo database location'Data\DB', or, configure Mongo to use a location of your choice.

When we work with Sitecore, it is very likely that you will probably be working on more than one site, so splitting your different websites' databases into different folders is highly recommended, so option 2 is recommended. If you go for route 2 then I would recommend creating a batch file to save you some time. The batch file would look something like this:

Job Done

After you have created your batch file, get it up and running, load Sitecore and you are now running Sitecore with Mongo!



If you are new to Mongo, I would recommend you have a look at, RoboMongo. The community version is free.


RoboMongo allows you to view your Mongo indexes and help you test that your connection strings are all set correctly.

Mongo Versions

Depending on which version of Sitecore you use, you will need to be careful about which version of Mongo to use. At the time of writing, Sitecore 8, Update 5, supports MongoDB 3.0. Older versions require you to update the Sitecore drivers, or, just use an older version of Mongo 2.6.x.


In today's guide, we've installed and got MongoDb up and running for our different Sitecore environments. Installing Mongo is very quick and easy and you should be up and running within minutes.