Import existing LevelDB data into SSDB


SSDB provides the leveldb-import tool to import LevelDB data into the SSDB database. The use of this tool is very simple.

You cannot copy LevelDB files directly to the SSDB directory, this method is wrong.

Usage:

./tools/leveldb-import ip port input_folder

Options:

  • ip - IP of SSDB server
  • port -Port number of SSDB server
  • input_folder -Directory of local LevelDB database

Example:

./tools/leveldb-import 127.0.0.1 8888 ./leveldb/