How to use mongodb shell in password protected environment?
meda Changed status to publish 16/07/2022
To use MongoDB shell with password protected database, we can issue a simple command
mongo -u username -p --authenticationDatabase dbname
mesihg Answered question 28/02/2022