MongoDB – Show Databases

MongoDB show databases In MongoDB, you can use the show dbs command to list all databases on a MongoDB server. This will show you the database name, as well as the size of the database in gigabytes. Example: > show dbs Output local 0.000GB mydb 0.001GB tecadmin 0.083GB You can select any database using the use statement and work on it.

Read More