MySQL Log-transaction log

Source: Internet
Author: User

transactional engine relies on transaction logs to ensure acid (atomicity, consistency, isolation, persistence)Therefore, the transaction log, the most important thing is to ensure the transaction reliabilityHow the transaction log works: Each line of the transaction log is a piece of information, typically a transaction ID number, which records the ID information generated by which transaction, and secondly, which table of the library he affects, again his original data, and new data. Generally for delete table operations the drop table transaction is not a recoverable server variable related to the transaction log: Use show GLOBAL VARIABLES like '%log% '; View. Only the InnoDB engine that supports transactions on MySQL. Therefore, the transaction log is related to the Innodbinnodb_flush_log_at_trx_commit: Log events in memory synchronization to the behavior of the log file, the following 1 means that when a transaction commit will be written to disk once, and refresh. 2 represents each transaction commit, but does not perform a disk refresh (the best performance, but data security is difficult to protect). 0 means synchronization is performed every second and disk refresh Innodb_log_buffer_size: Memory buffer size innodb_log_file_size: Transaction log file size Innodb_log_file_in_group: Transaction log Group, The transaction log in the General transaction log group file has two innodb_log_group_home_dir: indicates that the log group holds data./The transaction log that represents the data Catalog transaction log group is generally called IB_LOGFILE0Ib_logfile1 This is the InnoDB transaction log fileInnodb_mirrored_log_groups: Does the log do mirrored transaction logs should not be placed on the same disk as the data? Can be placed on the same disk, can also be stored separately, it is recommended to mirror the transaction logtransaction logs are important components for ensuring data installation, and we cannot manually manipulate transaction logs, which are operated by the MySQL storage engine InnoDB itself.

MySQL Log-transaction 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.