最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

redis migrate error:wrong number of arguments for 'migrate' command - Stack Overflow

programmeradmin2浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 0

You 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
发布评论

评论列表(0)

  1. 暂无评论