
- MongoDB Tutorial
- MongoDB - Home
- MongoDB - Overview
- MongoDB - Advantages
- MongoDB - Environment
- MongoDB - Data Modeling
- MongoDB - Create Database
- MongoDB - Drop Database
- MongoDB - Create Collection
- MongoDB - Drop Collection
- MongoDB - Data Types
- MongoDB - Insert Document
- MongoDB - Query Document
- MongoDB - Update Document
- MongoDB - Delete Document
- MongoDB - Projection
- MongoDB - Limiting Records
- MongoDB - Sorting Records
- MongoDB - Indexing
- MongoDB - Aggregation
- MongoDB - Replication
- MongoDB - Sharding
- MongoDB - Create Backup
- MongoDB - Deployment
- MongoDB - Java
- MongoDB - PHP
- Advanced MongoDB
- MongoDB - Relationships
- MongoDB - Database References
- MongoDB - Covered Queries
- MongoDB - Analyzing Queries
- MongoDB - Atomic Operations
- MongoDB - Advanced Indexing
- MongoDB - Indexing Limitations
- MongoDB - ObjectId
- MongoDB - Map Reduce
- MongoDB - Text Search
- MongoDB - Regular Expression
- Working with Rockmongo
- MongoDB - GridFS
- MongoDB - Capped Collections
- Auto-Increment Sequence
- MongoDB Useful Resources
- MongoDB - Questions and Answers
- MongoDB - Quick Guide
- MongoDB - Useful Resources
- MongoDB - Discussion
MongoDB difference between show dbs and show databases?
There is no difference between show dbs and show databases. Both commands internally call listDatabases command.
The show dbs command is as follows −
> show dbs
This will produce the following output −
admin 0.002GB app 0.000GB business 0.000GB config 0.000GB local 0.000GB main 0.000GB my 0.001GB ok 0.001GB sample 0.003GB sampleDemo 0.000GB studentSearch 0.000GB test 0.034GB university 0.000GB web 0.003GB webcustomertracker 0.000GB
The show databases command is as follows −
> show databases
This will produce the following output −
admin 0.002GB app 0.000GB business 0.000GB config 0.000GB local 0.000GB main 0.000GB my 0.001GB ok 0.001GB sample 0.003GB sampleDemo 0.000GB studentSearch 0.000GB test 0.034GB university 0.000GB web 0.003GB webcustomertracker 0.000GB
- Related Articles
- Why SHOW DBS does not show my databases in MongoDB?
- What is the BSON query for the command 'show dbs' (list of databases) in MongoDB?
- Difference between SHOW INDEX, SHOW INDEXES and SHOW KEYS in MySQL?
- Explain the difference between physical and logical databases
- To display a database in the SHOW dbs list, do we need to add collections to it?
- How can I display all databases in MySQL and for each database show all tables?
- Does MongoDB getUsers() and SHOW command fulfil the same purpose?
- Diagrammatically show the difference between the three types of muscle fibers.
- Difference between MySQL and MongoDB
- Difference between RDBMS and MongoDB
- Difference between Hadoop and MongoDB
- Show the relationship between mole, Avogadro number, and mass.
- What is the synonym statement of SHOW DATABASES with the help of which we can see the list of MySQL databases?
- Display databases in MongoDB
- Command to show the database currently being used in MongoDB?

Advertisements