Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 32.9Mb
PDF (A4) - 32.9Mb
PDF (RPM) - 30.9Mb
HTML Download (TGZ) - 7.8Mb
HTML Download (Zip) - 7.9Mb
HTML Download (RPM) - 6.7Mb
Man Pages (TGZ) - 143.5Kb
Man Pages (Zip) - 203.6Kb
Info (Gzip) - 3.0Mb
Info (Zip) - 3.0Mb


Pre-General Availability Draft: 2017-07-22

13.7.6.7 RESET PERSIST Syntax

RESET PERSIST [[IF EXISTS] system_var_name]

RESET PERSIST is used to remove persisted global system variable settings from the mysqld-auto.cnf file. This statement requires the SYSTEM_VARIABLES_ADMIN or SUPER privilege. Removing a persisted system variable causes the variable no longer to be initialized from mysqld-auto.cnf at server startup.

For information about persisted system variables, see Section 5.1.6, “Using System Variables”. For information about RESET statement variants that clear the state of other server operations, see Section 13.7.6.6, “RESET Syntax”.

Depending on whether the variable name and IF EXISTS clauses are present, the statement has these forms:

  • RESET PERSIST

    This statement removes all persisted variables from mysqld-auto.cnf.

  • RESET PERSIST system_var_name

    This statement removes the named persisted variable from mysqld-auto.cnf. This includes plugin system variables, even if the plugin is not currently installed. If the variable is not present in the file, an error occurs.

  • RESET PERSIST IF EXISTS system_var_name

    This statement removes the named persisted variable from mysqld-auto.cnf. This includes plugin system variables, even if the plugin is not currently installed. If the variable is not present in the file, a warning is generated.

RESET PERSIST is not affected by the value of the persisted_globals_load system variable.

RESET PERSIST affects the contents of the Performance Schema persisted_variables table because the table contents correspond to the contents of the mysqld-auto.cnf file.

RESET PERSIST has no effect on the contents of the Performance Schema variables_info table.


User Comments
Sign Up Login You must be logged in to post a comment.