I try to optimize MySQL with mysqltuner
but it seems like my my.cnf was never upated. there are lots of depricated warnings in /var/log/syslog
How can I get back the default configuration file so I can start optimizing from scatch?
MySQL
I try to optimize MySQL with mysqltuner
but it seems like my my.cnf was never upated. there are lots of depricated warnings in /var/log/syslog
How can I get back the default configuration file so I can start optimizing from scatch?
Best Answer
Mysqltuner is a tool aimed at providing advice, not replacinf a DBA or editing the config file.
You can find a default configuration file by installing the mysql-common package (on a different machine).
You can download the package with
Then you will have the package in your current directory. For me, it is
Check the contents with
and extract it to (let's say it exists) /tmp/mysql_wd/
It will be in /tmp/mysql_wd/etc/mysql/my.cnf
Then, there are simple basic advices given by Peter from Percona, which can help you get started at https://www.percona.com/blog/2014/01/28/10-mysql-settings-to-tune-after-installation/
Sorry if I only provide a link here, this is not the matter of the topic (there is no specific question about that).
The subject is too vast to process here and you will have to take a good look at it yourself but I think I have answered your question.
Best regards!