MySQL 清理slowlog方法
SET GLOBAL slow_query_log = 'OFF';ALTER TABLE mysql.slow_log RENAME mysql.slow_log_drop; CREATE TABLE mysql.slow_log LIKE mysql.slow_log_drop;SET GLOBAL slow_query_log = 'ON';DROP TABLE mysql.slow_log_drop;
本文共 227 字,大约阅读时间需要 1 分钟。
MySQL 清理slowlog方法
SET GLOBAL slow_query_log = 'OFF';ALTER TABLE mysql.slow_log RENAME mysql.slow_log_drop; CREATE TABLE mysql.slow_log LIKE mysql.slow_log_drop;SET GLOBAL slow_query_log = 'ON';DROP TABLE mysql.slow_log_drop;
转载地址:http://cvzjo.baihongyu.com/