Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dashboard/dashboard-session-sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ TiDB Dashboard 支持基于 [OIDC](https://openid.net/connect/) 协议的单点

3. 在**单点登录** (Single Sign-On) 区域下,开启**允许使用 SSO 登录到 TiDB Dashboard** (Enable to use SSO when sign into TiDB Dashboard)。

> **注意:**
>
> 如果你的账号没有 `SYSTEM_VARIABLES_ADMIN` 权限,**允许使用 SSO 登录到 TiDB Dashboard** (Enable to use SSO when sign into TiDB Dashboard) 选项会被禁用。有关权限的更多信息,请参考 [TiDB Dashboard 用户管理](/dashboard/dashboard-user.md)。

4. 在表单中填写 **OIDC Client ID** 和 **OIDC Discovery URL** 字段。

一般可以从 SSO 服务的提供商处获取到这两个字段信息:
Expand Down
4 changes: 4 additions & 0 deletions information-schema/information-schema-processlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,7 @@ SELECT * FROM information_schema.cluster_processlist;
| 127.0.0.1:10080 | 1268776964 | root | 127.0.0.1:59922 | NULL | Query | 0 | autocommit | SELECT * FROM information_schema.cluster_processlist | b1e38e59fbbc3e2b35546db5c8053040db989a497ac6cd71ff8dd4394395701a | 0 | 0 | 07-29 12:39:24.282(451471727468740609) | default | | 0 | 0 | 0 |
+-----------------+------------+------+-----------------+------+---------+------+------------+------------------------------------------------------+------------------------------------------------------------------+------+------+----------------------------------------+----------------+---------------+---------------+----------+----------+
```

## 权限

如果当前用户没有 `PROCESS` 权限,`PROCESSLIST` 仅显示该用户自己的会话请求。
8 changes: 8 additions & 0 deletions sql-statements/sql-statement-create-binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ Empty set (0.002 sec)
1 row in set (0.002 sec)
```

## SQL 语句截断

当你使用 `CREATE BINDING ... FROM HISTORY USING PLAN DIGEST` 时,如果该 digest 对应的 SQL 语句在 [Statement Summary Tables](/statement-summary-tables.md) 中由于长度超过了 [`tidb_stmt_summary_max_sql_length`](/system-variables.md#tidb_stmt_summary_max_sql_length-从-v40-版本开始引入) 而被截断,绑定可能会失败。此时,你需要增大 `tidb_stmt_summary_max_sql_length` 的值。

## 权限

执行 `CREATE BINDING` 语句需要 `SUPER` 权限。

## MySQL 兼容性

`CREATE [GLOBAL|SESSION] BINDING` 语句是 TiDB 对 MySQL 语法的扩展。
Expand Down
6 changes: 5 additions & 1 deletion sql-statements/sql-statement-show-processlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aliases: ['/docs-cn/dev/sql-statements/sql-statement-show-processlist/','/docs-c

# SHOW [FULL] PROCESSLIST

`SHOW [FULL] PROCESSLIST` 语句列出连接到相同 TiDB 服务器的当前会话。
`SHOW [FULL] PROCESSLIST` 语句列出连接到相同 TiDB 服务器的当前会话。`Info` 列包含查询文本,除非指定了可选的 `FULL` 关键字,否则该文本将被截断。如需查看整个集群的进程列表,请使用 [`INFORMATION_SCHEMA.CLUSTER_PROCESSLIST`](/information-schema/information-schema-processlist.md#cluster_processlist) 表。

## 语法图

Expand Down Expand Up @@ -37,6 +37,10 @@ SHOW PROCESSLIST;
- `State`:SQL 语句的状态。常见的值是 `autocommit`,表示该 SQL 语句是自动提交的。`in transaction` 表示该 SQL 语句处于事务中。
- `Info`:表示具体的 SQL 文本。除非指定可选关键字 `FULL`,否则文本会被截断。

## 权限

如果当前用户没有 `PROCESS` 权限,`SHOW PROCESSLIST` 仅显示该用户自己的会话请求。

## MySQL 兼容性

* TiDB 中的 `State` 列是非描述性的。在 TiDB 中,将状态表示为单个值更复杂,因为查询是并行执行的,而且每个 Go 线程在任一时刻都有不同的状态。
Expand Down