从4.0升级到4.2后无法访问MongoDB数据
我已经安装了mongodb社区,并将其作为一项服务推出 在这个过程中,我过度使用了从4.0升级到4.2后无法访问MongoDB数据,mongodb,robo3t,Mongodb,Robo3t,我已经安装了mongodb社区,并将其作为一项服务推出 在这个过程中,我过度使用了/usr/local/bin中的符号链接,现在它们指向。/cillar/mongodb community/4.2.0/bin 在此之前,符号链接指向。/cillar/mongodb/4.0.3/bin,此文件夹仍然存在 如何使用以前mongo版本中的所有mongodb数据(数据库、用户等) 我目前可以通过Robo3T连接到本地主机,但无法获取数据库列表。将mongodb从4或更低版本更新到4.2的最佳方法是 a)
/usr/local/bin
中的符号链接,现在它们指向。/cillar/mongodb community/4.2.0/bin
在此之前,符号链接指向。/cillar/mongodb/4.0.3/bin
,此文件夹仍然存在
如何使用以前mongo版本中的所有mongodb数据(数据库、用户等)
我目前可以通过Robo3T连接到本地主机,但无法获取数据库列表。将mongodb从4或更低版本更新到4.2的最佳方法是
a) create dump of all data;
b) uninstall completely current mongodb;
c) install mongodb 4.2 (community edition);
d) delete all mongodata in order to restore them from dump later;
e) restore data from dump;
g) run mongo service;
将mongodb从4或更低版本更新到4.2的最佳方法是
a) create dump of all data;
b) uninstall completely current mongodb;
c) install mongodb 4.2 (community edition);
d) delete all mongodata in order to restore them from dump later;
e) restore data from dump;
g) run mongo service;