一: 打开慢查询 CONFIG SET latency-monitor-threshold 100 大于100ms的慢查询会被记录 测试命令: debug sleep 1 获取慢查询日志: slowlog get