Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:55:27+00:00 2026-06-10T10:55:27+00:00

I have one Redis instance that has two databases. Now I want to set

  • 0

I have one Redis instance that has two databases. Now I want to set up a second instance and replicate the first instance, but the second instance should only have one database and replicate only db 0 from the first instance.
When I try to do it (set slaveof ... for the second instance) I get the following error message in the Redis log file:

FATAL: Data file was created with a Redis server configured to handle more than 1 databases. Exiting

I tried using redis-dump but I get an error when I try to import the generated dump into the new instance. (not related to 2 dbs vs. 1 db I think, rather a bug in redis-dump, which is still in alpha.

What to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:55:29+00:00Added an answer on June 10, 2026 at 10:55 am

    This is how I achieved it (with help of Gurpartap Singh):

    • Configure the second Redis instance with databases 2 just like the first one
    • Replicate the first instance (see http://redis.io/topics/replication)
    • Open a command line to the second Redis instance (using redis-cli)
    • On Redis CLI: SELECT 1 (select second db)
    • On Redis CLI: FLUSHDB (delete all keys in the second db)
    • On Redis CLI: SAVE (saves the dataset to disk)
    • Exit Redis CLI and stop Redis
    • Change configuration to databases 1
    • Start Redis again

    At this point you should have a running Redis instance with only one db (db 0 from the original Redis instance)

    The key here is that when we delete all keys in the second db and then save the dataset to disk, the resulting dump only has one db. (Thanks for the hint to Gurpartap Singh)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have configured the Redis server with one master and two slaves. If my
I have a model class that caches data in redis. The first time I
have one time consuming step that flattens a bunch of files. basically i'd like
I have one drop down list in my page, which contains two options. What
I have one sqlserver 2008 r2 datatable, it has one column autoId int identity(1,1),
I have been just learning redis and node.js There are two questions I have
I want to use redis for my game's leaderboard data and I have seen
Installing redis is really easy. I have done it on several VM. But on
I am trying to have God monitor two instances of Resque, one for production
im hacking an app using RoR and Redis. The Redis infrastructure wil have one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.