Ciro Santilli
🔗
🔗
List databases:
echo 'show dbs' | mongo
🔗
Delete database:
use mydb
db.dropDatabase()
or:
echo 'db.dropDatabase()' | mongo mydb
🔗
View collections within a database:
echo 'db.getCollectionNames()' | mongo mydb
🔗
Show all data from one of the collections: https://stackoverflow.com/questions/24985684/mongodb-show-all-contents-from-all-collections
echo 'db.collectionName.find()' | mongo mydb
🔗
🔗

Ancestors

🔗