list databases mongodb code example
Example 1: mongodb show database command linux
show databases
show dbs
Example 2: show collections in mongodb
db.getCollectionNames()
Example 3: mongodb show database command linux
show collections
show tables
db.getCollectionNames()