mysql error 1197 ,Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again 解決辦法


SELECT @@max_binlog_cache_size;

 

如果 一個 mysql 事務 需要的內存大於 max_binlog_cache_size;mysql就會拋出 Multi-statement transaction required more than 'max_binlog_cache_size' 錯誤。

解決辦法:

SET GLOBAL max_binlog_cache_size = 4294967296;  #40G

推薦最大設置為40G,

最大可能設置為 16EB (exabytes),


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM