Sunday, April 3, 2016

Mongodb server does not starting properly

Hello friends…..
I had seen that many times we are facing problem with starting MongoDB server.
Mongo server will not starting properly with mongod command.
Whenever you will get error as follow don’t be afraid just follow below command….



This type of error will occur because of improper shutdown of mongodb server.
We have to repair our database so it will shutdown properly and ready for start again…
Type following command to repair database

mongod --repair

We can also repair specific database by giving path using dbpath command.

mongod --dbpath /db/data --repair

Yeaaahhhh!!!!!... Thats it.......

Now our Mongo database run properly......


2 comments:

  1. What is the use of MongoDB rather than other Database?

    ReplyDelete
  2. MongoDB is document based and non-relational database....for long database it is used widely...

    ReplyDelete