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 You cannot copy LevelDB files directly to the SSDB directory. This method is wrong.
Usage:
./tools/leveldb-import ip port input_folder
Options:
- ip - the IP of the SSDB server
- port - the port number of the SSDB server
- input_folder - the directory of the local LevelDB database
Example :
./tools/leveldb-import 127.0.0.1 8888 ./leveldb/