how to repair mongodb

I was working on mongodb and suddenly my pc restarts, and then after typing “mongod” in command prompt, the mongodb was not starting.
After that, i used the following command in command prompt, “mongod -repair” and waited for some while. after the command finished, then i reused the command “mongod” and well, it worked. 🙂
here is the page from where i found the solution: http://stackoverflow.com/questions/9953295/how-to-repair-my-mongodb

Advertisements

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