On mongodb Data Recovery

  mongodb, question

Due to some reasons, mongodb’s service was cut off. window was used, the computer was turned on again, mongodb was turned on, and it was found that all the data were gone. There was no trace at all. Has anyone encountered it? How is this situation handled, although this data is not very important.

Even if we lose the data, we shouldn’t lose them all. I think the dbpath you used when restarting is wrong. Check it carefully.