

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Questions & Answers
- Why SHOW DBS does not show my databases in MongoDB?
- Difference between SHOW INDEX, SHOW INDEXES and SHOW KEYS in MySQL?
- What is the BSON query for the command 'show dbs' (list of databases) in MongoDB?
- Does MongoDB getUsers() and SHOW command fulfil the same purpose?
- Explain the difference between physical and logical databases
- How can I display all databases in MySQL and for each database show all tables?
- Show Bootstrap class
- To display a database in the SHOW dbs list, do we need to add collections to it?
- Difference between MySQL and MongoDB
- Difference between RDBMS and MongoDB
- Do animals also understand and show love?
- Show content with Bootstrap
- jQuery Effect show() Method
- Command to show the database currently being used in MongoDB?
- Show the flex lines with equal space between them
Advertisements