Execute delete from xx; it
appears:
Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage
The binlog cache size is not enough due to insufficient memory and cannot be written to binlog, resulting in the inability to execute the statement
Solution :
First,
change to truncate table xx;
second,
modify my .cnf, increase the values of the binlog_cache_size and max_binlog_cache_size parameters
binlog_cache_size = 20M
max_binlog_cache_size = 100M
Reason:
TRUNCATE TABLE is functionally the same as the DELETE statement without the WHERE clause: both delete all rows in the table.
TRUNCATE TABLE is faster than DELETE and uses less system and transaction log resources. The DELETE statement deletes one row at a time and records an entry in the transaction log for each row deleted.
Multi-statement transaction required more than 'max_binlog_cache_size' bytes of
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326350660&siteId=291194637
Ranking