Skip to main content
Version: V1.4.1

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​

  1. 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
  2. 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';
  3. Execute the following command to reset the parameter value.

    The statement is as follows:

    ALTER SYSTEM RESET
    parameter_name

    The 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;
  4. After the reset is successful, you can use the SHOW PARAMETERS statement 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 value and default_value must be ERROR, and isdefault must be 1.

References​