There are many ways of listing all the databases in the MongoDB console:-
- So the first thing you can use the command show dbs.
For MongoDB shell version 3.0.5 insert the following command in the shell:
db.adminCommand('listDatabases')
or alternatively:
db.getMongo().getDBNames()