12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-12-03 12:11:22
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
5.6默认值0,到了5.7默认是1
sync_binlogCommand-Line Format--sync-binlog=#System VariableNamesync_binlogVariable ScopeGlobalDynamic VariableYesPermitted Values(32-
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
sync_binlog
Command-Line Format--sync-binlog=#System VariableNamesync_binlogVariable ScopeGlobalDynamic VariableYesPermitted Values(32-bit platforms)TypeintegerDefault0Min Value0Max Value4294967295Permitted Values(64-bit platforms)TypeintegerDefault0Min Value0Max Value4294967295If the value of this variable is greater than 0, the MySQL server synchronizes its binary log to disk (usingfdatasync()) aftersync_binlogcommit groups are written to the binary log. The default value ofsync_binlogis 0, which does no synchronizing to disk—in this case, the server relies on the operating system to flush the binary log's contents from time to time as for any other file. A value of 1 is the safest choice because in the event of a crash you lose at most one commit group from the binary log. However, it is also the slowest choice (unless the disk has a battery-backed cache, which makes synchronization very fast).
百度翻译:如果这个变量的值大于0,MySQL服务器同步二进制日志到磁盘(使用fdatasync())后sync_binlog犯组写入二进制日志。sync_binlog的默认值是0,并没有同步在这种情况下,磁盘,服务器依赖于操作系统的二进制日志的内容刷新时间为任何其他文件。一个1的值是最安全的选择,因为在一个崩溃的事件,你失去了最一个提交组从二进制日志。然而,它也是最慢的选择(除非磁盘具有电池备份的高速缓存,这使得同步非常快)。11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19