Skip to content
logo
Percona Platform
MySQL binlog_row_image set to MINIMAL
Initializing search
    portal-doc
    portal-doc
    • Welcome
    • What's new
    • Registration and log in
    • Create and manage organizations
    • Check activity logs
    • Connect your PMM server
    • Advisor checks for PMM
    • Launch PMM environment
    • Network configuration
      • Copyright and licensing information
      • Trademark policy
    • Description
    • Resolution
    • Need more support from Percona?

    MySQL binlog_row_image set to MINIMAL¶

    Description¶

    This variable, in row-based replication, determines if row images are written to the blog as full (log all columns), minimal (Log only changed columns and columns used to identify rows), or noblob (log all columns except BLOB or TEXT columns).

    Setting binlog_row_image to MINIMAL reduces the amount of data pushed into the binary log. However, this setting also skips essential data used to recover your database from data corruption, or human mistakes.

    Manually change the value of binlog_row_image in the my.cnf file. **text [mysql]

    binlog_format=ROW binlog_row_image =FULL


    Close sessions and restart the server.

    To set the variable for a session, use the following command:

    mysql> SET SESSION binlog_row_image='FULL';
    

    Remember, if you close the session, the binlog_row_image setting returns to the server setting.

    For more information, see flashback recovery and the MySQL manual.

    On the other side, setting the binlog_row_image to FULL can result in a significant increase of data if you use many and large BLOB/TEXT columns that do not change often.
    Therefore, although best practice recommends using FULL, in some cases using MINIMAL is fine.

    Resolution¶

    Consider setting binlog_row_image=FULL to increase the chances of successful data recovery.

    Need more support from Percona?¶

    Subscribe to Percona Platform to get database support with guaranteed SLAs or proactive database management services from the Percona team.

    Learn more

    Contact us

    For free technical help, visit the Percona Community Forum.

    To report bugs or submit feature requests, open a JIRA ticket.

    For paid support and managed or consulting services , contact Percona Sales.

    2024-03-08
    Percona LLC and/or its affiliates, © 2024 Cookie Preferences
    Made with Material for MkDocs