RyanMar 25
MongoDB commands
Mongo Shell
list all database
$ show dbs
enter & use database
$ use <database name>
list all collection
$ show collections
$ show tables
$ db.getCollectionNames()
Mongo Shell
list all database
$ show dbs
enter & use database
$ use <database name>
list all collection
$ show collections
$ show tables
$ db.getCollectionNames()