Log in  \/ 
x
or
Register
x

Optimize MySQL with MySQLTuner

on . Posted in Tutorials

MySQL load can be really heavy on some servers, especially if you are hosting big communities, reducing the load of MySQL is in that case is essential. To help us achieving this task we will use MySQLTuner.
MySQLTuner is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability.  

MySQL logo



Download MySQLTuner :

cd /usr/local/src
wget http://mysqltuner.com/mysqltuner.pl

Make it executable :

chmod 0755 mysqltuner.pl

Run the script :

./mysqltuner.pl

Note: you may be asked to enter the MySQL root password, if yes, please provide.


The MySQLTuner output is separated into 5 parts as below:
General Statistics / Storage Engine Statistics / Security Recommendations / Performance Metrics / Recommendations

You should go through all parts especially on the Recommendations. It’s the main part which summarizes everything you need to step by step review your MySQL installation or make changes on some settings in the configuration file (usually located in /etc/my.cnf or /etc/mysql/my.cnf).

Share this article
FaceBook  Twitter

Comments (0)

There are no comments posted here yet

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok