Issues with loading dump file in to redis database -
i have dump.rdb file obtained redis server. trying load dump file in redis database unsuccessful. here sequence of steps performed:
- stop redis on machine
sudo /etc/init.d/redis_6379 stop
- copy dump file on system
sudo cp downloads/dump.rdb ../../../var/lib/redis/6379/
- start redis
sudo /etc/init.d/redis_6379 start
- open client connection locally
redis-cli
- check dbsize
dbsize (integer) 0
not sure doing wrong. newbie redis , went through other answers explaining how load dump file unsuccessful.
check redis.conf
configuration file make sure dbfilename
, dir
configurations match of dump file.
# name of dump file dbfilename dump.rdb # directory name of dump file. dir /var/lib/redis/6379/
ensure dump.rdb
file has proper permissions setting; i.e. user:group should redis:redis
, mode 644
.
Comments
Post a Comment