/ MongoDB Command Line Interface / Reference / Atlas AtlaswhitelistCommands This version of the documentation is archived and no longer supported. View thecurrent documentationto learn how toupgrade your version of MongoCLI. Back Disable a Customer-Managed X.509 Configuration Next List whitelist entries 简体...
如果想要得到更多,而且每个命令的详细用法,可以使用上面列出的db.listCommands()查询。另一个比较基础的是对指定数据库的集合进行操作、管理和监控,可以通过查询db.mycoll.help()获取到: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 > db.mycoll.help() DBCollection help db.mycoll.find().help() -...
agent Manages agents installed on yourOps Managerdeployments. alert ListsOps Manageralerts and alert configurations. automation Retrieves the latest plan for MongoDB processes in the specifiedOps Managerproject. backup Manages backup and restore jobs. ...
> help keys Tab completion and command history is available at the command prompt. Some emacs keystrokes are available too: Ctrl-A start of line Ctrl-E end of line Ctrl-K del to end of line Multi-line commands You can enter a multi line javascript expression. If parens, braces, etc. ...
-c [ --collection ] arg collection to use (some commands) 17. -f [ --fields ] arg comma separated list of field names e.g. -f name,age 18. --fieldFile arg file with fields names - 1 per line 19. -q [ --query ] arg query filter, as a JSON string 20. --csv export to...
对数据库进行管理和操作的基本命令,可以从上面获取到。如果想要得到更多,而且每个命令的详细用法,可以使用上面列出的db.listCommands()查询。 另一个比较基础的是对指定数据库的集合进行操作、管理和监控,可以通过查询db.mycoll.help()获取到: > db.mycoll.help() ...
对数据库进行管理和操作的基本命令,可以从上面获取到。如果想要得到更多,而且每个命令的详细用法,可以使用上面列出的db.listCommands()查询。另一个比较基础的是对指定数据库的集合进行操作、管理和监控,可以通过查询db.mycoll.help()获取到:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21...
db.listCommands() - 列出所有db命令 db.loadServerScripts() - 加载db.system.js中的所有脚本 db.logout() db.printCollectionStats() db.printReplicationInfo() db.printShardingStatus() db.printSecondaryReplicationInfo() db.rotateCertificates(message) - 轮换证书、crl和CA文件,并记录可选消息 db.runComma...
If you are still getting the authentication issues, then it is worth verifying the username and password values. For this, you can connect to MongoDB using these credentials from the command line/terminal. To connect to the mongo shell and authenticate, run the following commands. The large nu...
(opid) kills the current operation in the dbdb.listCommands() lists all the db commandsdb.loadServerScripts() loads all the scripts in db.system.jsdb.logout()db.printCollectionStats()db.printReplicationInfo()db.printShardingStatus()db.printSlaveReplicationInfo()db.dropUser(username)db.repair...