> Use mongo_test//CREATE Database
Switched to DB Mongo_test
> db.createcollection ("Test")//CREATE TABLE is the collection
{"OK": 1}
> DB.
Db.adduser (Db.group (
Db.admincommand (Db.groupcmd (
Db.auth (Db.groupeval (
Db.changeuserpassword (Db.hasownproperty (
Db.clonecollection (Db.help (
Db.clonedatabase (Db.hostinfo (
Db.commandhelp (Db.ismaster (
Db.constructor Db.killop (
Db.copydatabase (Db.killop (
Db.createcollection (Db.listcommands (
Db.createrole (Db.loadserverscripts (
Db.createuser (Db.logout (
Db.currentop (Db.printcollectionstats (
Db.currentop (Db.printreplicationinfo (
Db.dbeval (Db.printshardingstatus (
Db.dropallroles (Db.printslavereplicationinfo (
Db.dropallusers (Db.propertyisenumerable (
Db.dropdatabase (Db.prototype
Db.droprole (Db.removeuser (
Db.dropuser (Db.repairdatabase (
Db.eval (Db.reseterror (
Db.forceerror (Db.revokeprivilegesfromrole (
Db.fsynclock (Db.revokerolesfromrole (
Db.fsyncunlock (Db.revokerolesfromuser (
Db.getcollection (Db.runcommand (
Db.getcollectionnames (Db.serverbits (
Db.getlasterror (Db.serverbuildinfo (
Db.getlasterrorcmd (Db.servercmdlineopts (
Db.getlasterrorobj (Db.serverstatus (
Db.getmongo (Db.setprofilinglevel (
Db.getname (Db.setslaveok (
Db.getpreverror (Db.setwriteconcern (
Db.getprofilinglevel (Db.shutdownserver (
Db.getprofilingstatus (Db.stats (
Db.getreplicationinfo (db.system.indexes
Db.getrole (db.test
Db.getroles (Db.tolocalestring (
Db.getsiblingdb (Db.tostring (
Db.getsisterdb (Db.tojson (
Db.getslaveok (Db.unsetwriteconcern (
Db.getuser (Db.updaterole (
Db.getusers (Db.updateuser (
Db.getwriteconcern (Db.upgradecheck (
Db.grantprivilegestorole (Db.upgradecheckalldbs (
Db.grantrolestorole (Db.valueof (
Db.grantrolestouser (Db.version (
These are the common shell
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
MongoDB Common Shell