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

请问如何正确使用导入key&导出key功能? #1194

Closed
git-yqk opened this issue Apr 24, 2024 · 6 comments
Closed

请问如何正确使用导入key&导出key功能? #1194

git-yqk opened this issue Apr 24, 2024 · 6 comments

Comments

@git-yqk
Copy link

git-yqk commented Apr 24, 2024

OS

Windows

VERSION

1.6.4

ISSUE DESCRIPTION

本地redis导出key后,复制csv文件到服务器进行导入key操作,无法成功导入。经过多次相关测试,发现在哪个redis导出key就只能再导回到哪儿。多个redis均使用7.2.4版本,ardm也均是1.6.4。
微信截图_20240424123831

@qishibo
Copy link
Owner

qishibo commented Apr 24, 2024

  1. 右键多选key后导出csv文件
  2. 打开目标链接
  3. 点击链接菜单中的“导入”【此时注意选择好需要导入的db】

@git-yqk
Copy link
Author

git-yqk commented Apr 25, 2024

  1. 右键多选key后导出csv文件
  2. 打开目标链接
  3. 点击链接菜单中的“导入”【此时注意选择好需要导入的db】

是的,我是按照这个步骤进行的,但是仍然提示失败。同一个redis服务内不同db相互导出导入是可以成功的,但无法导入到其他redis服务,我不清楚到底是哪里出了问题。

@qishibo
Copy link
Owner

qishibo commented Apr 25, 2024

我在两台电脑上也试了下,没出问题,可以在检查下两边的ardm是否是最新版,因为164加上了ttl的功能

实在不行截取csv前10行贴一下我看看

@qishibo
Copy link
Owner

qishibo commented Apr 25, 2024

还有导入是通过RESTORE命令实现的,在目标redis里执行一下这个命令看被禁用了没

@git-yqk git-yqk closed this as completed Apr 25, 2024
@git-yqk git-yqk reopened this Apr 25, 2024
@git-yqk
Copy link
Author

git-yqk commented Apr 25, 2024

还有导入是通过RESTORE命令实现的,在目标redis里执行一下这个命令看被禁用了没

又经过了多次测试,最终确定解决如下:
1、双边均更新ARDM到1.6.4(这个是本来就做了的);
2、双边均将redis更新到了7.2.4,中途尝试将redis-7.2.4导出key后导入redis-3失败;
3、双边平台需要一致,服务器为windows server,导出key后导入我本机的wsl中docker容器的redis会失败,导入本机的redis成功,导入另一台windows server(redis-7.2.4)也成功。

我个人觉得不同平台可能导出key的文件有差异,存在不兼容问题。

@qishibo
Copy link
Owner

qishibo commented Apr 26, 2024

感谢测试!
2中涉及到的不同版本Redis这个是有可能的
3中平台应该不要求,我测试过win mac linux之间相互导入,导出的文件是APP自己生成的也

有问题可以继续讨论

@qishibo qishibo closed this as completed May 23, 2024
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