innodb_log_buffer_size
Memory buffer for redo log records before they are written to disk.
- Standard
64MB- Range
- 256KB to 4GB
- Restart needed
- Nein
- Default checked on
- MySQL 8.4 LTS
Was es bewirkt
Large transactions that exceed it must write redo before commit. Innodb_log_waits counts waits for buffer space.
Standardwert
64MB. 64MB since MySQL 8.4 (16MB in 8.0).
Check the current value
SHOW GLOBAL VARIABLES LIKE 'innodb_log_buffer_size'; SELECT VARIABLE_NAME, VARIABLE_SOURCE, MIN_VALUE, MAX_VALUE, SET_TIME FROM performance_schema.variables_info WHERE VARIABLE_NAME = 'innodb_log_buffer_size';
Change it
SET GLOBAL innodb_log_buffer_size = 134217728; -- until the next restart SET PERSIST innodb_log_buffer_size = 134217728; -- now and after restarts
No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.
When to change it
If Innodb_log_waits is above zero, typically with large BLOB or bulk transactions.
What can go wrong
Low risk; memory only.
Questions about innodb_log_buffer_size
What is the default value of innodb_log_buffer_size in MySQL?
64MB. 64MB since MySQL 8.4 (16MB in 8.0).
Does changing innodb_log_buffer_size require a restart?
No. No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.
When should I change innodb_log_buffer_size?
If Innodb_log_waits is above zero, typically with large BLOB or bulk transactions.
Back to all MySQL settings, or check the MySQL manual for every option.
Check innodb_log_buffer_size on your own server
SQLly runs the query above against MySQL and the other engines in this reference, from one desktop app on macOS, Windows and Linux.