SHOW PROC
功能
查看当前集群中的特定指标。
语法
SHOW PROC { '/auth' | '/backends' | '/compute_nodes' | '/dbs'
| '/jobs' | '/statistic' | '/tasks' | '/frontends'
| '/brokers' | '/resources' | '/load_error_hub'
| '/transactions' | '/monitor' | '/current_queries'
| '/current_backend_instances' | '/cluster_balance'
| '/routine_loads' | '/colocation_group' | '/catalog' }
参数说明
参数 | 说明 |
---|---|
'/auth' | 查看当前集群的用户权限及认证信息。 |
'/backends' | 查看当前集群的 BE 节点信息。 |
'/compute_nodes' | 查看当前集群的 CN 节点信息。 |
'/dbs' | 查看当前集群的数据库信息。 |
'/jobs' | 查看当前集群的作业信息。 |
'/statistic' | 查看当前集群各数据库的统计信息。 |
'/tasks' | 查看当前集群各种任务类型的总数和失败总数。 |
'/frontends' | 查看当前集群的 FE 节点信息。 |
'/brokers' | 查看当前集群的 Broker 节点信息。 |
'/resources' | 查看当前集群的资源信息。 |
'/load_error_hub' | 查看当前集群的 Error Hub 的配置信息。Error Hub 用于管理导入作业产生的错误信息。 |
'/transactions' | 查看当前集群的事务信息。 |
'/monitor' | 查看当前集群的监控信息。 |
'/current_queries' | 查看当前连接的FE节点正在执行的查询信息。 |
'/current_backend_instances' | 查看当前集群正在执行作业的 BE 节点。 |
'/cluster_balance' | 查看当前集群的负载信息。 |
'/routine_loads' | 查看当前集群的 Routine Load 导入信息。 |
'/colocation_group' | 查看当前集群的 Colocate Join Group 信息。 |
'/catalog' | 查看当前集群的 Catalog 信息。 |
示例
示例一:查看当前集群的用户权限及认证信息。
mysql> SHOW PROC '/auth';
+-------------------------------------+----------+------------+-------------------+----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+---------------+
| UserIdentity | Password | AuthPlugin | UserForAuthPlugin | GlobalPrivs | DatabasePrivs | TablePrivs | ResourcePrivs |
+-------------------------------------+----------+------------+-------------------+----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+---------------+
| 'root'@'%' | Yes | NULL | NULL | Node_priv Admin_priv (false) | NULL | NULL | NULL |
| 'default_cluster:johndoe'@'%' | Yes | NULL | NULL | Admin_priv Select_priv Load_priv Alter_priv Create_priv Drop_priv (false) | information_schema: Select_priv (false) | NULL | NULL |
| 'default_cluster:katherine'@'%' | Yes | NULL | NULL | (false) | information_schema: Select_priv (false) | NULL | NULL |
+-------------------------------------+----------+------------+-------------------+----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+---------------+
返回 | 说明 |
---|---|
UserIdentity | 用户标识,形式为 username@'userhost' 或 username@['domain'] 。 |
Password |