1

I open the journal file "WiredTigerLog.0000000003" by "Sublime",but the content is garbled.

Luckily, I can identify the data I deleted from the garbled content!

this is the content of WiredTigerLog

I have searched for an afternoon, but still do not know how to recover data from the Journal file. Very much looking forward to your answer!

aweiu
  • 390
  • 4
  • 12

1 Answers1

0

You don't need to do anything except start up your mongod server again:

With journaling enabled, if mongod stops unexpectedly, the program can recover everything written to the journal. MongoDB will re-apply the write operations on restart and maintain a consistent state.

See Manage Journaling for more details.

Vince Bowdren
  • 8,326
  • 3
  • 31
  • 56
  • Thanks.But the content of the journal is the remove operation,So,i don't think it is a good idea – aweiu Apr 19 '17 at 12:46