MongoDB List all databases


Example

show dbs

or

db.adminCommand('listDatabases')

or

db.getMongo().getDBNames()