0

How to enable the mysql slow query log?

How to enable the mysql slow query log?

wilson
asked Jan 6, 2019
1 Answer
0

By using the Following queries you can enable the Slow Query log

mysql -u root -p
SET GLOBAL slow_query_log = 'ON';
SET GLOBAL long_query_time = X;
SET GLOBAL slow_query_log_file = '/path/filename';
View More
linuxhelp
answered Jan 12, 2019
Your Answer
||||
 
100:0