Home > Database > Mysql Tutorial > body text

How to query the log path in Mysql

WBOY
Release: 2022-05-16 15:18:02
Original
5869 people have browsed it

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’;
Copy after login

How to query the log path in Mysql

2 .Find the global log file path

show variables like ‘general_log_file’;
Copy after login

How to query the log path in Mysql

3. Slowly query the log file path

show variables like ‘slow_query_log_file’;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template