KILL <query id>
KILL terminates the execution of a query by its ID, which you can find in SHOW QUERIES.
mysql> KILL 4;
Query OK, 1 row affected (0.00 sec)
POST /sql?mode=raw -d "KILL 4"
[
{
"total": 1,
"error": "",
"warning": ""
}
]
Last modified: April 13, 2026
PURGE removes selected data associated with a table. The purge target specifies what is removed.
PURGE <target> FROM TABLE <table_name>;
The only target currently supported is BULK_IMPORT.
PURGE BULK_IMPORT FROM TABLE products;
PURGE BULK_IMPORT removes the entire staging root used by bulk import, including directories and files left by an interrupted load. Run it only after confirming that no direct-to-disk load is active for the table.
The statement requires an existing local real-time table that is not in a replication cluster. It removes only direct-to-disk staging state and does not change the table schema or indexed documents. If the staging root is absent, the statement succeeds without making any changes. In configless mode, DROP TABLE also removes the table's direct-to-disk staging root.
SHOW WARNINGS statement can be used to retrieve the warning produced by the latest query. The error message will be returned along with the query itself:
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'
It returns the current values of a few server-wide variables. Also, support for GLOBAL and SESSION clauses was added.
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