10

I read about RocksDB admin tool "ldb" on https://github.com/facebook/rocksdb/wiki/Administration-and-Data-Access-Tool

But I could only find the ldb repo for leveldb: https://github.com/0x00A/ldb

After compiling ldb, I cannot run either command from the links provided.

$ ldb -i ./db
Corruption: VersionEdit: unknown tag

or

$ ldb --db=./db
In excecutable 'ldb':
Unrecognized flag/option '--db=./db'

Where can I get the correct ldb admin tool for RocksDB, so at least I can browse through my existing RocksDB?

Thanks,

adamretter
  • 3,885
  • 2
  • 23
  • 43
James Yu
  • 399
  • 6
  • 22

1 Answers1

13

The ldb tool for RocksDB is part of the code base: https://github.com/facebook/rocksdb/tree/main/tools

You can build it by following the instructions in INSTALL.md and running make ldb.

Rajiv
  • 215
  • 3
  • 9
adamretter
  • 3,885
  • 2
  • 23
  • 43