I use MIGRATE command to transfer redis data:
redis > migrate ip 6379 "" 1 5000 copy AUTH 4PE***YgX6
and get the error:
(error) ERR wrong number of arguments for 'migrate' command
can't figure out what's wrong with the command
I use MIGRATE command to transfer redis data:
redis > migrate ip 6379 "" 1 5000 copy AUTH 4PE***YgX6
and get the error:
(error) ERR wrong number of arguments for 'migrate' command
can't figure out what's wrong with the command
Share Improve this question asked Jan 18 at 7:10 Cooper AaronCooper Aaron 311 silver badge3 bronze badges 1- Just check the docs. You use migrate ip "ip", docs says migrate "host" "ip", the word ip is not part of it, and you should add your host before – avifen Commented Jan 18 at 20:34
1 Answer
Reset to default 0You have not provided the key or list of keys that you want to migrate.
So, if you want to migrate a single key named KEY
:
migrate ip 6379 KEY 1 5000 copy AUTH 4PE***YgX6
Or, if you want to migrate N
number of keys:
migrate ip 6379 "" 1 5000 copy AUTH 4PE***YgX6 KEYS KEY_1 KEY_2 ... KEY_N