Reset parameters
After you modify the value of a parameter, you can use the ALTER SYSTEM RESET statement to reset the parameter to its default value as needed.
Procedure
-
Log in to seekdb.
The following example shows how to connect to the database. Please replace the actual environment variables with your own.
mysql -h127.xx.xx.xx -P2881 -uroot -p***** -A -
Modify a dynamically effective configuration item and view its current value. The following example uses
syslog_level:ALTER SYSTEM SET syslog_level = 'WARN';
SHOW PARAMETERS LIKE 'syslog_level'; -
Execute the following command to reset the parameter value.
The statement is as follows:
ALTER SYSTEM RESET
parameter_nameThe following table describes the related parameters.
Resetting a parameter removes its saved override. A dynamic parameter returns to its default immediately. A static parameter returns to its default at the next startup.
Example:
-
Reset the parameter value
ALTER SYSTEM RESET syslog_level;
-
-
After the reset is successful, you can use the
SHOW PARAMETERSstatement to verify whether the parameter value is reset, depending on the actual situation (whether to restart seekdb or not).SHOW PARAMETERS LIKE 'syslog_level';After the reset, both
valueanddefault_valuemust beERROR, andisdefaultmust be1.