Answers for "Create mongo database"

C#
4

create mongodb database

db = new Mongo().getDB("EtudiantDB");
Posted by: Guest on February-12-2021
5

how to create database in mongo db command

use DATABASE_NAME
Posted by: Guest on May-12-2020
0

Create mongo database

$ mongo testdb
MongoDB shell version v4.0.7
connecting to: mongodb://127.0.0.1:27017/testdb?gssapiServiceName=mongodb
...
> db
testdb
> db.cars.insert({name: "Audi", price: 52642})
> db.cars.insert({name: "Mercedes", price: 57127})
> db.cars.insert({name: "Skoda", price: 9000})
> db.cars.insert({name: "Volvo", price: 29000})
> db.cars.insert({name: "Bentley", price: 350000})
> db.cars.insert({name: "Citroen", price: 21000})
> db.cars.insert({name: "Hummer", price: 41400})
> db.cars.insert({name: "Volkswagen", price: 21600})
Posted by: Guest on October-13-2021

Code answers related to "Create mongo database"

C# Answers by Framework

Browse Popular Code Answers by Language