MySQL Settings (also known as Server Variables) have interesting
property. When you set variable in running server this change is
not persisted in any way and server will be back to old value
upon restart. MySQL also does not have option to re-read config
file without restarting as some other software so approach to
change config file and when instruct server to re-read it also
does not work. This leads to runtime settings being different
from settings set in config file, and unexpected change on
restart a frequent problem.
pt-config-diff is the tool which can help with this problem a lot, being able to compare settings in my.cnf to those server is currently running with. The problem however this only works well if settings are set in my.cnf as if default option was used and we change it in run time we can’t detect such change easily …
[Read more]