Want to migrate all keys from one database to another by redis cli getting error "NOKEY"
Redis Cli >> migrate host port "" 0 5000 auth pass copy keys
"NOKEY"
Want to migrate all keys from one database to another by redis cli getting error "NOKEY"
Redis Cli >> migrate host port "" 0 5000 auth pass copy keys
"NOKEY"
You should read the docs about MIGRATE to understand its usage. In any case, this command is for migrating specific keys (not patterns or all) between databases.
I suggest you consider using the original database's dump or setting up replication to copy the keys.