Documentation Home
MySQL 8.3 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 294.0Kb
Man Pages (Zip) - 409.0Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb
Excerpts from this Manual

MySQL 8.3 Reference Manual  /  ...  /  The ps_setup_enable_thread() Procedure

30.4.4.11 ps_setup_enable_thread()过程

给定连接ID,启用性能模式instrumentation的线程。产生结果集,指示启用了多少线程。已经启用的线程不计入。

参数
  • in_connection_id BIGINT:连接ID。这是性能模式 threads 表的 PROCESSLIST_ID 列或 SHOW PROCESSLIST 输出的 Id 列的值。

示例

启用特定连接的连接ID:

mysql> CALL sys.ps_setup_enable_thread(225);
+------------------+
| summary          |
+------------------+
| Enabled 1 thread |
+------------------+

启用当前连接:

mysql> CALL sys.ps_setup_enable_thread(CONNECTION_ID());
+------------------+
| summary          |
+------------------+
| Enabled 1 thread |
+------------------+