How To Install MySQLTuner on CentOS

Install MySQLTuner on CentOS

In this tutorial we will show you how to install and configuration of MySQLTuner on your CentOS server. For those of you who didn’t know, MySQLTuner is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief format along with some basic performance suggestions. It is really easy to use and it is recommended to analyze your Linux vps regularly in order to get the best performances.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation MySQLTuner on a CentOS server.

Install MySQLTuner on CentOS

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

Step 2. Installing MySQLTuner.

Download the MySQLTuner script as follows:

We must make it script executable:

To run MySQLTuner, you can execute the command:

As a result, you should get something like this:

The script recommends to adjust or add the following variables in the mysql my.cnf file. The location of my.cnf is normally /etc/my.cnf or /etc/mysql/my.cnf depending on the Linux distribution that is installed on your server.

Congratulation’s! You have successfully installed MySQLTuner. Thanks for using this tutorial for installing MySQLTuner to optimize your MySQL on CentOS system. For additional help or useful information, we recommend you to check the official MySQLTuner web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!