mongodb hoe to check dbname code example
Example 1: mongodb show database command linux
show collections
show tables
db.getCollectionNames()
Example 2: how to get current database mongodb
db.getName()
show collections
show tables
db.getCollectionNames()
db.getName()