MySQL Variables pseudo_thread_id 数据库 参数变量解释及正确配置使用
本站中文解释
pseudo_thread_id,代表假线程ID,用于跟踪和识别每一个MySQL连接。 其值通常是一个32位无符号整数,但它可以在MySQL 8.0版本中设置为64位。 建议一般值保持默认,如果你希望更改,可以使用如下命令:
SET @@pseudo_thread_id = value;
如果值超出可用的最大值,MySQL将使用最大值。
官方英文解释
pseudo_thread_id
| System Variable | pseudo_thread_id |
|---|---|
| Scope | Session |
| Dynamic | Yes |
| Type | Integer |
| Default Value | 2147483647 |
| Minimum Value | 0 |
| Maximum Value | 2147483647 |
This variable is for internal server use.
Warning
Changing the session value of the
pseudo_thread_id system
variable changes the value returned by the
CONNECTION_ID() function.