# binlog_row_image

> How many columns a row-based binary log event records.

Source: https://sqlly.app/sql-configuration/mysql/binlog-row-image
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).

**Default**

`FULL`

**Range**

FULL, MINIMAL, NOBLOB

**Restart needed**

No

**Default checked on**

MySQL 8.4 LTS

## What it does

Each row change carries a before image for finding the row and an after image with the new values. FULL records every column in both; MINIMAL records only the identifying columns plus those that changed; NOBLOB records everything except BLOB or TEXT columns the statement did not touch.

## Default value

`FULL`. FULL (MySQL 8.4).

## Check the current value

```
SHOW GLOBAL VARIABLES LIKE 'binlog_row_image';

SELECT VARIABLE_NAME, VARIABLE_SOURCE, MIN_VALUE, MAX_VALUE, SET_TIME
FROM performance_schema.variables_info
WHERE VARIABLE_NAME = 'binlog_row_image';
```

## Change it

```
SET SESSION binlog_row_image = 'MINIMAL';   -- this connection
SET GLOBAL binlog_row_image = 'MINIMAL';    -- new connections, until restart
SET PERSIST binlog_row_image = 'MINIMAL';   -- new connections, and after restarts
```

No restart. SET GLOBAL (or SET PERSIST, which also survives restarts) applies to connections opened afterwards; existing connections keep their session value unless they SET it themselves.

## When to change it

On high-write replicas where binlog size and network transfer matter, with wide tables holding large BLOB or TEXT columns that rarely change.

## What can go wrong

Smaller images shrink the log and the network cost, but the replica must then match rows with fewer columns, so every replicated table needs a primary key or unique index to be updated reliably. Use the same value on every server in the topology, as the manual recommends.

## Questions about binlog_row_image

### What is the default value of binlog_row_image in MySQL?

FULL. FULL (MySQL 8.4).

### Does changing binlog_row_image require a restart?

No. No restart. SET GLOBAL (or SET PERSIST, which also survives restarts) applies to connections opened afterwards; existing connections keep their session value unless they SET it themselves.

### When should I change binlog_row_image?

On high-write replicas where binlog size and network transfer matter, with wide tables holding large BLOB or TEXT columns that rarely change.

Back to all [MySQL settings](https://sqlly.app/sql-configuration/mysql), or check the [MySQL manual](https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html) for every option.

## Related MySQL settings

- [`binlog_format` Whether the binary log stores statements, row changes, or a mix.](https://sqlly.app/sql-configuration/mysql/binlog-format)
- [`log_bin` Whether the binary log is enabled.](https://sqlly.app/sql-configuration/mysql/log-bin)
- [`replica_parallel_workers` Applier threads a replica uses to apply transactions in parallel.](https://sqlly.app/sql-configuration/mysql/replica-parallel-workers)
