MongoDB Database Administration Commands

This article lists the  commands used for MongoDB administration.Please feel free to suggest and contribute more commands. Login to mongodb instance # mongo -u <username> -p <password> --authenticationDatabase <dbname> Authenticate and logout  from database use admin;  db.auth('user','password'); // Logout db.logout() Show all databases show dbs Define a database name use <databasename> This command is to... Continue Reading →

Powered by WordPress.com.

Up ↑