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
SHOW [{GLOBAL | SESSION}] VARIABLES LIKE 'pattern'
它返回一些服务器范围变量的当前值。同时,添加了对 GLOBAL 和 SESSION 子句的支持。
mysql> SHOW GLOBAL VARIABLES;
+--------------------------+-----------+
| Variable_name | Value |
+--------------------------+-----------+
| autocommit | 1 |
| collation_connection | libc_ci |
| query_log_format | sphinxql |
| log_level | info |
| max_allowed_packet | 134217728 |
| character_set_client | utf8 |
| character_set_connection | utf8 |
| grouping_in_utc | 0 |
| last_insert_id | 123, 200 |
+--------------------------+-----------+
9 rows in set (0.00 sec)
mysql> show variables like '%log%';
+------------------+----------+
| Variable_name | Value |
+------------------+----------+
| query_log_format | sphinxql |
| log_level | info |
+------------------+----------+
2 rows in set (0.00 sec)
mysql> show session variables like 'autocommit';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| autocommit | 0 |
+---------------+-------+
1 row in set (0.00 sec)
Last modified: August 28, 2025