Show database in mongodb show it empty while I can acess and query data

╄→尐↘猪︶ㄣ 提交于 2019-12-05 17:47:12

It seems like you have to update your MongoDB Shell.

There's a known issue (SERVER-15987) where listCollections returns empty when an old version of the shell is used.

When executing the mongo command, you can see the shell version in the first line.

MongoDB shell version: 3.0.4

If you have anything less than 3.0, you should update your shell.
In Debian, this can be reinstalled using apt-get install mongodb-org-shell

source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!