Overview
binlog_row_image specifies whether to record full-column logs.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
The
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Session expiration
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Enum |
| Default Value | FULL |
| Value range |
|
| Effective Scope |
|
| Modifiable | Yes, you can use the following methods:SETStatement modification. |
Usage instructions
Full-column logs record both the old and new values of all columns for UPDATE and DELETE statements on an OBServer node. Non-full-column logs record only the new value.
After you modify a variable by using the
SET GLOBAL binlog_row_image= 'xxx'command, the change does not take effect on any existing sessions (including the session that initiated the modification).
Configuration example
Sets all columns to record full-column logs.
Effective globally
obclient> SET GLOBAL binlog_row_image=FULL;Session Validity Period
obclient> SET binlog_row_image=FULL;