Starting up with MongoDB

Here’s how to install MongoDB in Windows OS

1. Download here:
http://www.mongodb.org/downloads

2. Type “wmic os get osarchitecture” in ( cmd ) command line to determine if 32 or 64 bit for Windows.

3. Download takes approximately 20 mins or less.

Note: size of file is 132 MB

4. Install

5. Make sure to run this command >
“C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe” –dbpath C:\MongoTest\data ( change the appropriate paths )

If you don’t do this command, then you will encounter this error. See below:

install_error

6. After 5 is completed you will get this screen, and the \data folder will have these contents

after_create_data_folder_command

data_folder_contents

7. run mongo.exe open the open the MongoDB shell. This should be the result.

mongo_shell_connected

8. This is all set, now we can create a Java Application that can access the MongoDB

Installation is described here more in detail:

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

Advertisements

One thought on “Starting up with MongoDB

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s