show collections in mongodb
db.getCollectionNames()
mongodb show database command linux
show databases
show dbs
mongodb show database command linux
show collections
show tables
db.getCollectionNames()
how to see databases in mongodb
>show dbs
List mongo databases
using System;
using MongoDB.Driver;
using MongoDB.Bson;
namespace SimpleEx
{
class Program
{
static void Main(string[] args)
{
var dbClient = new MongoClient("mongodb://127.0.0.1:27017");
var dbList = dbClient.ListDatabases().ToList();
Console.WriteLine("The list of databases are:");
foreach (var item in dbList)
{
Console.WriteLine(item);
}
}
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us