mysql慢查询日志切换

mysql> show variables like '%slow%';

mysql> set global slow_query_log=0;

mysql> show variables like '%slow%'; -- check slow log status

mysql> set global slow_query_log_file='/mysqllog/slow_log/slow_queries_3306_new.log';


mysql> set global slow_query_log=1;

mysql> show variables like '%slow%';

posted @ 2019-09-16 15:26  rain88  阅读(320)  评论(0编辑  收藏  举报