Friday, November 28, 2014

INSTALL MONGODB

Go to below link and download MONGODB  (DOWNLOAD THE .MSI FILE)

link to download

Then run the downloaded file.

And install it with default configurations.(Configuration selected by default.)

After that check your ProgramFiles OR ProgramFiles(x86) for MongoDB standard.. folder.

Copy it and paste in the C drive.

Rename it as mongodb

After the open a command promt and type  cd c:\\mongodb\bin

Then type mongod and press ENTER.



then you will see the following things print on the window.
NOW YOUR MONGODB SERVER IS ACTIVE.  DON'T CLOSE THIS TERMINAL

IF MONGO SERVER DIDN'T START AND SAY ERROR FOR SOME MISSING DIRECTORY,
THEN MAKE FOLDER NAME data in the C drive.
IN SIDE THAT FOLDER MAKE FOLDER CALLED db

NOW DO THE ABOVE TASK AGAIN.

Take anothe window and type the cd c:\\mongodb\bin

Type mongo

you will receive connecting to: test  message.

The type db for get the current database.

Normally Your default database is test.(you will result as test)

Change it by enter the use <yourdbname>      Ex:- use ABC

switched to db ABC will print in the terminal




No comments:

Post a Comment