.show cluster databases.show cluster databases

返回一个表,其中显示附加到该群集以及附加到调用该命令的用户有权访问的群集的所有数据库。Returns a table showing all the databases attached to the cluster and to which the user invoking the command has access. 如果使用特定数据库名称,则仅包含这些数据库。If specific database names are used, only those databases would be included.

语法Syntax

.show cluster databases [details | identity | policies | datastats].show cluster databases [details | identity | policies | datastats]

.show cluster databases (database1, database2, ... databaseN).show cluster databases (database1, database2, ... databaseN)

输出Output

输出参数Output parameter 类型Type 说明Description
DatabaseNameDatabaseName StringString 数据库名称。Database name. 数据库名称区分大小写。Database names are case-sensitive.
PersistentStoragePersistentStorage StringString 在其中存储数据库的持久存储 URI。The persistent storage URI in which the database is stored. (对于临时数据库,此字段为空。)(This field is empty for ephemeral databases.)
版本Version StringString 数据库的版本号。Database version number. 对于数据库中的每个更改操作(如添加数据和更改架构),都会更新此数字。This number is updated for each change operation in the database (such as adding data and changing the schema).
IsCurrentIsCurrent 布尔Boolean 如果数据库是当前连接所指向的数据库,则为 True。True if the database is the one that the current connection points to.
DatabaseAccessModeDatabaseAccessMode StringString 群集附加到数据库的方式。How the cluster is attached to the database. 例如,如果数据库是在只读模式下附加的,则群集以任何方式修改数据库的所有请求都将失败。For example, if the database is attached in ReadOnly mode, the cluster will fail all requests to modify the database in any way.
PrettyNamePrettyName StringString 数据库友好名称。The database pretty name.
CurrentUserIsUnrestrictedViewerCurrentUserIsUnrestrictedViewer 布尔Boolean 指定当前用户是否是数据库的不受限制的观看者。Specifies if the current user is an unrestricted viewer on the database.
数据库 IDDatabaseId GuidGuid 数据库的唯一 ID。The database's unique ID.