MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License.
Basic syntax of use DATABASE statement is as follows −
To check your currently selected database, use the command db
If you want to check your databases list, use the command show dbs.
Your created database (mydb) is not present in list. To display database, you need to insert at least one document into it.
asic syntax of dropDatabase() command is as follows −