mongo show dbs code example
Example 1: mongodb show database command linux
show databases
show dbs
Example 2: mongodb show database command linux
show collections
show tables
db.getCollectionNames()
Example 3: mongo shell commands
show dbs
use <db>
show collections
db.people.insert({name:"Ashwin",gender:"m"})
db.people.find(<any attributes or none>)
db.people.update({name:"Ashwin"},{gender:"f"})
db.people.remove({name:"Ashwin"})
db.people.drop()
Example 4: view mongodb database
>db.mycol.insert({
_id: ObjectId(7df78ad8902c),
title: 'MongoDB Overview',
description: 'MongoDB is no sql database',
by: 'tutorials point',
url: 'http://www.tutorialspoint.com',
tags: ['mongodb', 'database', 'NoSQL'],
likes: 100
})