tencent cloud

TencentDB for MySQL

文档TencentDB for MySQL

Failure to Obtain slow_query_log_file via a Command

下载
聚焦模式
字号
最后更新时间: 2025-12-02 17:27:18

Symptom Description

The user failed to obtain the slow_query_log_file data by running the following command:
select @@slow_query_log_file;
Error message:
ERROR 1193 (HY000): Unknown system variable 'slow_query_log_file'
Version: 5.7

Possible Causes

Since slow_query_log_file is marked with TENCENT_VAR in MySQL 5.7, the result cannot be obtained directly by running the SELECT command.

Solution

If the error prompt in the above scenario occurs when you attempt to obtain the slow_query_log_file data, run the following command to obtain the corresponding data:
show global variables like '%slow_query_log_file%';

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈