wiredtiger java_mongodb数据库损坏,丢失WiredTIger.wt等meta文件,通过collection*.wt恢复数据...

mongodb 恢复wiredtiger数据

Background

mongodb是一款开源NoSQL非关系型数据库,通过database, collection组织存储数据文件,其中在每个collection中,每条数据被存储为一个document,而每个document为一组键值对。

wiredtiger java_mongodb数据库损坏,丢失WiredTIger.wt等meta文件,通过collection*.wt恢复数据..._第1张图片

此外,mongodb默认使用WiredTiger作为数据存储引擎,WiredTiger为数据管理提供了不同粒度的并发控制和压缩机制,能够为不同种类的应用提供了最好的性能和存储效率,其中,WiredTiger支持lz4, nop, snappy, zlib, zstd等压缩方式。其中,mongodb默认采用snappy。Github地址: https://github.com/wiredtiger/wiredtiger

从mongodb的数据存储目录中不难发现以下文件,

collection****.wt

index****.wt

_mdb_catalog.wt

sizeStorer.wt

storage.bson

WiredTiger

WiredTiger.lock

WiredTiger.turtle

WiredTiger.wt

其中,

collection-xxx.wt和index-xxx.wt是数据库中集合所对应的数据文件和索引文件。

_m

你可能感兴趣的:(wiredtiger,java)