• wiredtiger--初学数据恢复


    启动mongodb是failed,日志如下

    1.解压wirdtiger包 

    tar -vxf wiredtiger-3.1.0.tar.bz2 -C /home/wiredtiger/

    2.安装snappy

    3.安装libsnappy

    DEB-基于: sudo apt-get install libsnappy-dev

    基于RPM: sudo yum install libsnappy-devel

    Brew: brew install snappy

    3.执行./configure --enable-snappy后,make进行安装,完成后生成工具wt

    4 数据移动到/var/backup

    5。进行数据恢复

    ./wt -v -h /var/backup -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R dump -f ../caesar.data collection-0-8102798208027342319

    5. 执行 ./wt -v -h /var/backup -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R load -f ../caesar.data -r collection-0-8102798208027342319.wt

  • 相关阅读:
    三角形的个数
    Nightmare(搜索)
    Prime Ring Problem(搜索)
    Safecracker(搜索)
    丑数
    八皇后问题(回溯法)
    Dijkstra
    floyd详解
    继续畅通工程(kruskal prim)
    畅通工程
  • 原文地址:https://www.cnblogs.com/CaesarLinsa/p/9814089.html
Copyright © 2020-2023  润新知