MySQL 8.3 Release Notes
给定连接 ID,禁用性能模式的线程instrumentation。产生结果集,指示禁用了多少线程。已经禁用的线程不计入。
通过连接 ID 禁用特定连接:
mysql> CALL sys.ps_setup_disable_thread(225);
+-------------------+
| summary |
+-------------------+
| Disabled 1 thread |
+-------------------+
禁用当前连接:
mysql> CALL sys.ps_setup_disable_thread(CONNECTION_ID());
+-------------------+
| summary |
+-------------------+
| Disabled 1 thread |
+-------------------+