Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find ldb admin tool for RocksDB? [closed]

Tags:

rocksdb

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,

like image 250
James Yu Avatar asked Aug 22 '16 23:08

James Yu


1 Answers

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.

like image 75
adamretter Avatar answered Nov 08 '22 22:11

adamretter