数据库管理Databases management
本主题介绍以下数据库控制命令:This topic describes the following database control commands:
命令Command | 说明Description |
---|---|
.show databases.show databases | 返回一个表,其中的每条记录都与该用户有权访问的群集中的某个数据库相对应Returns a table in which every record corresponds to a database in the cluster that the user has access to |
.show database.show database | 返回一个表,其中显示了上下文数据库的属性Returns a table showing the properties of the context database |
.show cluster databases.show cluster databases | 返回一个表,其中显示已附加到群集并且可供调用此命令的用户访问的所有数据库Returns a table showing all databases attached to the cluster and to which the user invoking the command has access |
.alter database.alter database | 更改数据库的易记名称Alters a database's pretty (friendly) name |
.show database schema.show database schema | 返回所选数据库的结构的简单列表,其所有表和列都在单个表或 JSON 对象中Returns a flat list of the structure of the selected databases with all their tables and columns in a single table or JSON object |