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
|
DDL log (metadata log) |
Metadata operations performed by DDL statements |
在MySQL中有許多日誌,使用FLUSH LOGS
可以刷新日誌。在系統運行時可以操作常規日誌和慢查詢日誌,可以使日誌生效或者失效,或是改變文件名稱。可以使普通查詢或者是慢查詢記錄在表中或者是文本文件中