Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select another database for import #27

Open
polearnik opened this issue Jan 2, 2019 · 1 comment
Open

select another database for import #27

polearnik opened this issue Jan 2, 2019 · 1 comment

Comments

@polearnik
Copy link

polearnik commented Jan 2, 2019

I dump database 5 from server and I want to import to database 3 but command

cat db5.json | ./redis-load -d 3
not work. I need to replace in file "db":5, to "db":3, for successfully import.
It needed to fix on use -d 3 to ignore database in file

@shaoye
Copy link

shaoye commented Mar 1, 2022

I figured to include the db number in the uri to make it work

i.e.

cat db5.json | redis-load -u 127.0.0.1:6379/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants