問題描述
在操作mongo shell的時候,出現這個
Warning: unable to run listCollections,
attempting to approximate collection names by parsing connectionStatus
解決方案
原因是mongo設置了用戶名和密碼,所以登陸的時候需要指定用戶名和密碼
# mongodb://用戶名:密碼@localhost:27017
root@c87416afb49d:/# mongo mongodb://root@rootlocalhost:27017