Changing configuration settings in MySQL wasn’t always easy. Of course it’s possible to change things (hopefully), but keeping track of everything is not always obvious. This is where configuration management systems like puppet, chef, ansible, … excels in making our life easier.
/etc/my.cnf
With MySQL 8.0, we worked in making your life easier (and the life of configuration management systems easier too).
Let’s first illustrate the problematic very naively:
As you can see, we can modify this configuration variable, but
after a restart of MySQL, this change is lost, this behavior, of
course is something known by all MySQL DBAs. The usual solution
is then to also modify the configuration file
(/etc/my.cnf in most cases).
SET PERSIST …
[Read more]