MySQL日誌彙總

Log Type

Information Written to Log

Error log

Problems encountered starting, running, or stopping            mysqld

General query log

Established client connections and statements received from clients

Binary log

Statements that change data (also used for replication)

Relay log

Data changes received from a replication master server

Slow query log

Queries that took more than            long_query_time seconds to execute

DDL log (metadata log)

Metadata operations performed by DDL statements

 

在MySQL中有許多日誌,使用FLUSH LOGS可以刷新日誌。在系統運行時可以操作常規日誌和慢查詢日誌,可以使日誌生效或者失效,或是改變文件名稱。可以使普通查詢或者是慢查詢記錄在表中或者是文本文件中

發佈了31 篇原創文章 · 獲贊 6 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章