MySQL 8.0 introduced a new feature that allows you to persist
configuration changes from inside MySQL. Previously you could
execute SET GLOBAL to change the configuration at
runtime, but you needed to update your MySQL configuration file
in order to persist the change. In MySQL 8.0 you can skip the
second step. This blog discuss how this works and how to backup
and restore the configuration.
Using SET PERSIST to set a variable and the persisted_variables table in the Performance Schema to get a list of persisted variables.Persisting Variables
You persist changes with either the SET PERSIST or
SET PERSIST_ONLY …