开发者

How can I turn on MySql Slow Queries in runtime?

开发者 https://www.devze.com 2023-03-31 18:05 出处:网络
Is there any way to turn Slow queries on when MySQL server in running? Because i cannot resta开发者_如何学Crt MySQL server since the manager in on vacation!This is mostly a guess backed only by readin

Is there any way to turn Slow queries on when MySQL server in running? Because i cannot resta开发者_如何学Crt MySQL server since the manager in on vacation!


This is mostly a guess backed only by reading docs, but using something like this might work

SET GLOBAL log_slow_queries = '/some/log/path', long_query_time = 1;

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号