The relationship between MySQL Bin-log and Innodb_log

Source: Internet
Author: User

First, the binary log records all the log records related to the MySQL database, including InnoDB, MyISAM, Heap (except memory), and other storage engine logs. The InnoDB storage engine's redo log records the transaction log for the engine itself.

Second, the contents of the record are different. Whether the user formats the binary log file as statement or row, or mixed, it records the specific operation of a transaction, that is, the log is a logical log. The redo log for the InnoDB storage engine is a physical case of changes to each page. This is basically because of the MySQL server and the engine independent implementation of the results of it.

In addition, the write time is different. The binary log file is written only once after the transaction commits, that is, the disk is written only once, regardless of how large the transaction is. While the transaction is in progress, there are constant redo log entries (redo entry) that are written to the redo log file.

The relationship between the two determines that after MySQL server crash, only using the InnoDB Log,bin-log is useless, for Oracle, the nature of the Bin-log content is the same as before checkpoint content. So Bin-log accidentally deleted also does not matter, will not affect recovery, but innodb_log is not, may lead to the situation can not recovery.

The relationship between MySQL Bin-log and Innodb_log

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.