SHOW QUERIES
注意:SHOW QUERIES 需要 Manticore Buddy。如果它不起作用,请确保已安装 Buddy。
SHOW QUERIES 返回所有当前正在运行的查询的信息。输出是一个具有以下结构的表:
id:查询 ID,可用于 KILL 终止查询
query:查询语句或其部分内容
time:命令执行所用时间或查询执行的时间(在这种情况下,值将包含 ago)
protocol:连接协议,可能的值为 sphinx、mysql、http、ssl、compressed、replication,或组合(例如,http,ssl 或 compressed,mysql)
host:客户端的 ip:port
+------+--------------+---------+----------+-----------------+
| id | query | time | protocol | host |
+------+--------------+---------+----------+-----------------+
| 111 | select | 5ms ago | http | 127.0.0.1:58986 |
| 96 | SHOW QUERIES | 255us | mysql | 127.0.0.1:33616 |
+------+--------------+---------+----------+-----------------+
2 rows in set (0.61 sec)
如果您想从线程本身的角度获取信息,请参阅 SHOW THREADS。
Last modified: August 28, 2025
SHOW VERSION
注意:SHOW VERSION 需要 Manticore Buddy。如果无法使用,请确保已安装 Buddy。
SHOW VERSION 提供 Manticore Search 实例中各个组件的详细版本信息。该命令对于需要验证所运行的 Manticore Search 版本及其相关组件版本的管理员和开发人员特别有用。
输出表包含两列:
Component:此列显示 Manticore Search 的具体组件名称。
Version:此列显示相应组件的版本信息。
+------------+--------------------------------+
| Component | Version |
+------------+--------------------------------+
| Daemon | 6.2.13 61cfe38d2@24011520 dev |
| Columnar | columnar 2.2.5 214ce90@240115 |
| Secondary | secondary 2.2.5 214ce90@240115 |
| Knn | knn 2.2.5 214ce90@240115 |
| Embeddings | embeddings 1.0.0 |
| Buddy | buddy v2.0.11 |
+------------+--------------------------------+
Last modified: August 28, 2025
KILL <query id>
KILL 通过查询的 ID 终止查询的执行,您可以在 SHOW QUERIES 中找到该 ID。
mysql> KILL 4;
Query OK, 1 row affected (0.00 sec)
Last modified: August 28, 2025
SHOW WARNINGS 语句可用于检索最新查询产生的警告。错误信息将与查询本身一起返回:
mysql> SELECT * FROM test1 WHERE MATCH('@@title hello') \G
ERROR 1064 (42000): index test1: syntax error, unexpected TOK_FIELDLIMIT
near '@title hello'
mysql> SELECT * FROM test1 WHERE MATCH('@title -hello') \G
ERROR 1064 (42000): index test1: query is non-computable (single NOT operator)
mysql> SELECT * FROM test1 WHERE MATCH('"test doc"/3') \G
*************************** 1\. row ***************************
id: 4
weight: 2500
group_id: 2
date_added: 1231721236
1 row in set, 1 warning (0.00 sec)
mysql> SHOW WARNINGS \G
*************************** 1\. row ***************************
Level: warning
Code: 1000
Message: quorum threshold too high (words=2, thresh=3); replacing quorum operator
with AND operator
1 row in set (0.00 sec)
Last modified: August 28, 2025