MongoDB show databases

MongoDB show databases

 MongoDB show databases


Use show dbs command from mongo shell to list all the available databases on MongoDB server. This will show the database name with their size.

Example:

> show dbs

local           0.000GB
mydb            0.001GB
tecadmin        0.083GB

You can select any database using the use statement and work on it.

Souy Soeng

Souy Soeng

Our website teaches and reads PHP, Framework Laravel, and how to download Admin template sample source code free. Thank you for being so supportive!

Github

Post a Comment

CAN FEEDBACK
close