Controls how often the MySQL server synchronizes the binary log to disk.
控制MySQL服务器将二进制日志同步到磁盘的频率。
• sync_binlog=0: Disables synchronization of the binary log to disk by the MySQL server.
Instead, the MySQL server relies on the operating system to flush the binary log to disk from time
to time as it does for any other file. This setting provides the best performance, but in the event of
a power failure or operating system crash, it is possible that the server has committed transactions that have not been synchronized to the binary log.
禁止MySQL服务器将二进制日志同步到磁盘。相反,MySQL服务器依赖操作系统不时地将二进制日志刷新到磁盘,就像它对任何其他文件一样。此设置提供最佳性能,但在如果出现电源故障或操作系统崩溃,则可能是服务器提交了尚未同步到二进制日志的事务。
• sync_binlog=1: Enables synchronization of the binary log to disk before transactions are
comm