1. Home
  2. Docs
  3. mongodb
  4. FAQ
  5. 报错 listCollections requires authentication?

报错 listCollections requires authentication?

在使用命令恢复数据时提示: listCollections requires authentication

原因是需要指定账号密码: mongorestore -u USERNAME -p PASSWORD --authenticationDatabase admin -d dbNAME PATH/TO/DIRECTORY

Was this article helpful to you? Yes No

How can we help?