在本地的Redis数据库做测试时,使用“redis-dump -u :password@localhost:6379”(没有密码的话,可以不加密码前缀)命令导出数据会出现以下错误:
将命令中的“localhost”改为“127.0.0.1”即可,更改后的命令如下:
redis-dump -u 127.0.0.1:6379
运行:

在本地的Redis数据库做测试时,使用“redis-dump -u :password@localhost:6379”(没有密码的话,可以不加密码前缀)命令导出数据会出现以下错误:
将命令中的“localhost”改为“127.0.0.1”即可,更改后的命令如下:
redis-dump -u 127.0.0.1:6379
运行: