Home >Database >Mysql Tutorial >How to query the log path in Mysql

How to query the log path in Mysql

WBOY
WBOYOriginal
2022-05-16 15:18:025907browse

Method: 1. "show variables like 'log_error'" to query the error log; 2. "...like 'general_log_file'" to query the log; 3. "...like 'slow_query_log_file'" to query the slow log .

How to query the log path in Mysql

The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.

How to query the log path in Mysql

First log in to mysql

1. Find the error log file path

show variables like ‘log_error’;

How to query the log path in Mysql

2 .Find the global log file path

show variables like ‘general_log_file’;

How to query the log path in Mysql

3. Slowly query the log file path

show variables like ‘slow_query_log_file’;

How to query the log path in Mysql

Recommended learning:mysql video tutorial

The above is the detailed content of How to query the log path in Mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn