Title: Java & MongoDB - Show Databases
Open Graph Title: Java & MongoDB - Show Databases
Description: To show databases, you can use MongoClient.listDatabaseNames() method to get the name of all the databases. As we have created an empty database in Connect Database chapter, we need to insert a document to make it visible in mongodb database list.
Open Graph Description: To show databases, you can use MongoClient.listDatabaseNames() method to get the name of all the databases. As we have created an empty database in Connect Database chapter, we need to insert a document to make it visible in mongodb database list.
Opengraph URL: https://www.tutorialspoint.com/java_mongodb/java_mongodb_show_databases.htm
Domain: www.tutorialspoint.com
| None | IE=edge |
| og:type | article |
| og:image | https://www.tutorialspoint.com/images/tp_logo_436.png |
Links:
Viewport: viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes