Backup table data today encountered an error code:1197 multi-statement TRANSACTION required more THAN ' max_binlog_cache_size ' bytes of STORAGE

Source: Internet
Author: User

Backup table data today encountered an error code:1197 multi-statement TRANSACTION required more THAN ' max_binlog_cache_size ' bytes of STORAGE

Version: mysql5.6.35

System: centos6.5

Here is the BACKUP statement

CREATE TABLE  as SELECT *  from

1197 Multi - TRANSACTION ' max_binlog_cache_size '  of  and try Again

Internet search, found that the max_binlog_cache_size set is not large enough reason

to the InnoDB engine
Because InnoDB is transactional, the entire operation of the load file is treated as a transaction,
Breaking the load operation halfway will result in a rollback.
Some parameters related to this:
Max_binlog_cache_size----The maximum cache memory size that can be used.
When executing a multi-statement transaction, if the max_binlog_cache_size is not large enough,
The system may report a "multi-statement
Transaction required more than ' max_binlog_cache_size ' bytes of storage ' error.
Note: For load data, if the file size of load is 512M, during load execution,
All generated binlog are written to binlog_cache_size until the end of the load data operation.
Finally, a binary log, such as mysql-bin.0000008, is written by Binlog_cache_size.
Therefore, the size of this parameter must be greater than the size of the file to load, or the size of the current transaction operation to be made.

Solve the problem of changing the big max_binlog_cache_size

SET = 20971520

Backup table data today encountered an error code:1197 multi-statement TRANSACTION required more THAN ' max_binlog_cache_size ' bytes of STORAGE

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.