I have a dump.rdb file, which is in the same directory as redis.config.
When I start my sever:
It does not load the data in that 1 GB file.
How do I load that data?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Edit your config file to set the
dir option to the current working directory:
# The filename where to dump the DB dbfilename dump.rdb # The working directory. # # The DB will be written inside this directory, with the filename specified # above using the 'dbfilename' configuration directive. # # Also the Append Only File will be created inside this directory. # # Note that you must specify a directory here, not a file name. dir /current/working/directory
Do as follow:
Restart the redis-server
redis-cli BGREWRITEAOF, to create a new appendonly file.
Modify redis config
yes and restart your redis-server
Please see this