Problem starting mongoDB server on Windows 8? Resolved

Everyone is loving NoSQL and mainly MongoDB. I thought to start getting my hand dirty on this. So to start with downloaded MongoDB for Windows and installed it. So far so good.

Next I browsed to MongoDB folder. To start server typed mongo.exe command. Oops encountered following error that could not connect to server.


Okay so to start using mongoDB first we need to start mongoDB server. That can be done as by using command mongod. So I tried starting mongoDB server using mongod command. Oops again I got following error which clearly says dbpath does not exist.


So let us go ahead and create a folder data\db. We are free to create this folder at any location. However later this folder location should be set with dbpath for mongoDB.


Once data folder is created we need to set dbpath which can be done as follows,


It will take some time to get this command executed. You will notice that there is no error encountered.

Command prompt should stopped at


Next launch another command prompt and type command mongo.exe


Here you see mongoDB is connected to database test. To test successful installation, let us insert one record in test database. To insert command is where test is your database.


After doing these steps mongoDB is installed successfully on your Windows Machine. I hope this post is useful. Thanks for reading.

Setting up CouchDB on Windows 8

In this post we will take a look on downloading and setting up CouchDB on Windows8. In this post I will not discuss various concepts of CouchDB rather I will show you step by step installation and creating your first CouchDB database. In further posts we will go into details of various aspects of CouchDB


To start with download CouchDB installer from here. Choose Windows from all the given options.


After successful download installation will start. We need to follow the screens to install CouchDB.


In next screen accept agreement and click on Next.


Choose location to install CouchDB


In this screen give shortcut name and click on Next to proceed further.


We want to install CouchDB as Windows Service. So select both options and click on Next to proceed further.


Next confirm all the settings of CouchDB installation and click on Install to install it. After successful installation you should get following window.


Testing installation and creating first database

To test that whether we successfully installation of CouchDB navigate to

In browser you will find replications and users information.


Click on Create Database to create a new CouchDB database. Give desired name of database and click on Create.


After successful creation of database you will find database listed in Recent Databases section.


To add one document in database click on create New Document. After successful creation of document you will find _id and _rev attribute or document has been set.


In this way we can setup CouchDB on a Windows environment. In further posts we will get into details of various CouchDB aspects. I hope you find this post useful. Thanks for reading.