下載了一個mysql手冊中文翻譯CHM版本,一直用。按中文手冊對binlog-ignore-db的解釋發現了一個錯誤。 中文手冊對binlog-ignore-db的解釋如下:
–binlog-ignore-db=db_name
告訴主服務器,如果當前的數據庫(即USE選定的數據庫)是db_name,不應將更新保存到二進制日誌中。如果你使用該選項,你應確保只對當前的數據庫進行更新。
一個不能按照你期望的執行的例子:如果服務器用binlog-ignore-db=sales啓動,並且執行USE prices; UPDATE sales.january SET amount=amount+1000;,該語句不寫入二進制日誌。
而英文手冊的解釋是:
An example of what does not work as you might expect: If the server is started with
binlog-ignore-db=sales
, and you runUSE prices; UPDATE sales.january SET amount = amount + 1000;
, this statement is written into the binary log.
中文手冊說不寫入日誌,我說怎麼按中文手冊的說法測試了幾次都還是寫入了。本來以爲是我mysql版本的問題。還好我查了下英文版本的手冊。翻譯人員夠粗心的,意思都翻譯反了。看來關鍵性描述的還是得看英文原版手冊。