2013-02-07 32 views
2

MySQL錯誤日誌只有在他們旁邊,並創建它們的時間多少,我需要格式化,以便它也包括日期,如何日期添加到MySQL錯誤日誌

我應該怎麼辦呢?

130207 2:25:29 [Note] Plugin 'FEDERATED' is disabled. 
130207 2:25:29 InnoDB: The InnoDB memory heap is disabled 
130207 2:25:29 InnoDB: Mutexes and rw_locks use InnoDB's own implementation 
130207 2:25:29 InnoDB: Compressed tables use zlib 1.2.3 
130207 2:25:29 InnoDB: Using Linux native AIO 
130207 2:25:30 InnoDB: Initializing buffer pool, size = 3.0G 
130207 2:25:30 InnoDB: Completed initialization of buffer pool 
130207 2:25:30 InnoDB: highest supported file format is Barracuda. 
130207 2:25:30 InnoDB: Waiting for the background threads to start 

回答

4

是不是130207 2013年2月7日?

+0

它是。我不認爲有任何格式化日誌的選項。 – ESG

+0

爲什麼要格式化?很好,因爲它是。 OO – mimipc

3

@mimipc是正確的,那些前6個字符的確是YYMMDD。

一個change介紹了在MySQL 5.6.9開始:格式

的mysqld現在在ISO(:SS毫米YYYY-MM-DD HH)寫入日期錯誤日誌。它還包括日期後的進程ID。

我不希望這是後移植到以前的版本......但有連接到Bug #56240一個補丁,你可以在早期版本,如果你真的動機 ...然而,MySQL的可能使用5.6現在正式在General Availability status與MySQL 5.6.10。