Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从4.0升级到4.2后无法访问MongoDB数据_Mongodb_Robo3t - Fatal编程技术网

从4.0升级到4.2后无法访问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)

我已经安装了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) 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;