MongoDB系统集合
最后更新于
最后更新于
MongoDB stores system information in collections that use the <database>.system.*
, which MongoDB reserves for internal use. Do not create collections that begin with system
.
MongoDB also stores some additional instance-local metadata in the , specifically for replication purposes and in the for .
MongoDB将系统信息存储在使用<database>.system.*
的集合中,这些集合是MongoDB保留供内部使用的。用户请不要创建以system
开头的集合。
MongoDB还将一些额外的本地元数据存储在中,专门用于主从复制;并在中存储。
System collections include these collections stored in the admin
database:
admin.system.roles
The collection stores custom roles that administrators create and assign to users to provide access to specific resources.
admin.system.users
The collection stores the user's authentication credentials as well as any roles assigned to the user. Users may define authorization roles in the collection.
admin.system.version
The collection stores metadata to suport internal operations. Do not modify this collection unless specifically instructed to in this documentation or by a MongoDB support engineer.
系统集合包括存储在admin
数据库中的以下集合:
admin.system.roles
集合存储管理员创建并分配给用户的自定义角色,以提供对特定资源的访问。
admin.system.users
集合存储用户的身份验证凭据以及分配给该用户的所有角色。用户可以在 集合中定义授权角色。
admin.system.version
集合存储元数据以支持内部操作。除非本文档或MongoDB支持工程师明确指示,否则请勿修改此集合。
System collections include these collections stored in the config
database:
config.system.indexBuilds
New in version 4.4.
系统集合包括存储在config
数据库中的以下集合:
config.system.indexBuilds
4.4版本新引入
indexBuilds
集合存储了与正在进行的索引创建有关的信息。
System collections also include these collections stored directly in each database:
<database>.system.namespaces
NOTE
Removed in 4.2
<database>.system.indexes
NOTE
Removed in 4.2
<database>.system.profile
<database>.system.js
<database>.system.views
系统集合还包括以下直接存储在每个数据库中的集合:
<database>.system.namespaces
注意
4.2版本中被移除
<database>.system.indexes
注意
4.2版本中被移除
<database>.system.profile
<database>.system.js
<database>.system.views
译者:phoenix
时间: 2021.04.26
版本: 4.4
The collection stores information related to in-progress index builds.
Starting in MongoDB 4.2, <database>.system.namespaces
has been removed (access to the collection has been deprecated since 3.0). To list the collections in a database, use the command instead.
Starting in MongoDB 4.2, <database>.system.indexes
has been removed (access to the collection has been deprecated since 3.0). To list the indexes, use the command instead.
The collection stores database profiling information. For information on profiling, see .
The collection holds special JavaScript code for use in . See for more information.
The collection contains information about each in the database.
从MongoDB 4.2开始,<database>.system.namespaces
已被删除(从3.0开始不推荐使用该集合)。要列出数据库中的集合,请改用命令。
从MongoDB 4.2开始,<database>.system.indexes
已被删除(从3.0开始不推荐使用该集合)。要列出数据库中的集合,请改用命令。
<database>.system.profile
集合存储数据库分析信息。有关分析的信息,请参见。
<database>.system.js
集合包含用于的特殊JavaScript代码。有关更多信息,请参见在。
<database>.system.views
集合包含有关数据库中每个的信息。
原文: