The configuration community:
Search the Site:

sync_binlog

Information

If the value of this variable is positive the MySQL server synchronizes its binary log to disk (using fdatasync()) after every sync_binlog writes to the binary log. Note that there is one write to the binary log per statement if autocommit is enabled and one write per transaction otherwise. The default value is 0 which does no synchronizing to disk. A value of 1 is the safest choice because in the event of a crash you lose at most one statement or transaction from the binary log. However it is also the slowest choice (unless the disk has a battery-backed cache which makes synchronization very fast). This variable was added in MySQL 4.1.3.

Syntax

Example

728x90