mysql慢日誌查詢

使用 set global slow_query_log=1 開啓了慢查詢日誌只對當前數據庫生效 如果Mysql重啓後則會失效   一:查看是否開啓 show variables like '%slow_query_log%' 上圖顯示, slow_query_log 爲 OFF  則未開啓, ON爲開啓 二:開啓慢日誌查詢 set global slow_query_log=1 開啓成功,再次使
相關文章
相關標籤/搜索