innodb_flush_log_at_trx_commit
innodb
专有
参数值有0、1、2
0
:
log buffer
将每秒一次地写入
log file
中,并且
log file
的
flush(
刷到磁盘
)
操作同时进行。该模式下在事
务提交的时候,不会主动触发写入磁盘的操作
(
最快
)
。
1
:每次事务提交时
MySQL
都会把
log buffer
的数据写入
log file
,并且
flush(
刷到磁盘
)
中去,该模式为系
统默认
(
最慢
)</