简体   繁体   中英

Innodb log flush to prevent data loss

I need to have a high power fault tollerance to my innodb engine and i can not change hardware configuration. Do you suggest to call

FLUSH ENGINE LOGS;

after a very important operations? Can it help to prevent data loss from poweroff or process crash?

Using FLUSH ENGINE LOGS should be unnecessary. Your configuration of MySQL/InnoDB should have:

  • innodb_flush_logs_at_trx_commit = 1
  • sync_binlog = 1

Beyond that, if your hardware is not reliable, there's not much that can be done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM