How to show database names in mongodb


 description

View all database names and space usage in mongodb

 command

show dbs

 parameter

show dbs : show database names

 result

admin             0.000GB
test          51.848GB
config            0.000GB
local             0.000GB

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.