1745
MariaDBERRORNotableReplicationHIGH confidence
Binlog statement cache size exceeds max binlog cache size
Production Risk
Medium — configuration error prevents proper binlog operation.
What this means
The configured binlog_stmt_cache_size is larger than max_binlog_cache_size, which is not allowed.
Why it happens
- 1binlog_stmt_cache_size set to a value exceeding max_binlog_cache_size in my.cnf.
How to reproduce
trigger — this will error
trigger — this will error
SET GLOBAL binlog_stmt_cache_size = 2147483648; -- if larger than max_binlog_cache_size
expected output
ERROR 1745 (HY000): binlog_stmt_cache_size value is greater than max_binlog_cache_size.
Fix
Increase max_binlog_cache_size or reduce binlog_stmt_cache_size
Increase max_binlog_cache_size or reduce binlog_stmt_cache_size
SET GLOBAL max_binlog_cache_size = 4294967295; SET GLOBAL binlog_stmt_cache_size = 2097152;
Why this works
Ensures the statement cache never exceeds the overall cache maximum.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 1745 ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev