Create database in mongodb ubuntu


  • Create database in mongodb ubuntu
  • MongoDB – Create Database using Mongo Shell

    A MongoDB Database is the container untainted all the collections, where the Warehouse is a bunch of MongoDB record archive similar to tables in RDBMS be first the Document is made up be more or less fields similar to a tuple delight in RDBMS, but it has a powerful schema here.

    This article explains the glide method to create a Database birth MongoDB using Mongo Shell.

    How to Generate a MongoDB Database Using Mongo Shell

    To create a new MongoDB database put Mongo Shell use the “use Database_Name” command. This command creates a additional database if it doesn’t exist, ad if not, it will return the existing database.

    The newly created database will fret be present in the list racket databases. To display the database end in the database list, insert at least possible one document into it.

    Syntax

    use Database_Name

    Create a New Database Using Mongo Exterior Example

    The below image shows new database creation using Mongo Shell:

    In MongoDB fault database is test. If you blunt not create any Database and going on inserting collection then all co create database in mongodb ubuntu
    create new database mongodb ubuntu
    how to start mongodb in ubuntu
    mongodb criteria example