command to see dbs in the mongo db code example
Example 1: mongodb show database command linux
show databases
show dbs
Example 2: mongodb show database command linux
show collections
show tables
db.getCollectionNames()
show databases
show dbs
show collections
show tables
db.getCollectionNames()