Kennisbank
Optimize MySQL
You could try running the following script to see the recommendations it provides:
You need to modify your /etc/my.cnf according to the mysqltuner results.
Next, you can optimize all databases with this command:
Restart MySQL after you've done the above:
Please wait 24 hours and then re-run mysqltuner.pl again on the machine to see any other variable changes to make.
Code:
/usr/local/cpanel/3rdparty/mysqltuner/mysqltuner.pl
Next, you can optimize all databases with this command:
Code:
mysqlcheck --auto-repair --check --optimize --all-databases
Code:
/etc/init.d/mysql restart