MySQL / Server Setup

Install MySQLTuner in CentOS/RHEL

by , , revisited on

We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

What is MySQLTuner

MySQLTuner is a great little utility to tune up your MySQL instance to perform at it best.

Install MySQLTuner

yum -y install
yum -y install mysqltuner

Run MySQLTuner

Simply type mysqltuner and get overwhelmed with a list of tweak suggestions.

Our MySQLTuner package ships with basic_passwords.txt and vulnerabilities.csv, so when you run mysqltuner, it will report you whether your MySQL has any vulnerabilities or poor user passwords.

Schedule reports

You can get weekly suggestions (if any) for MySQLTuner by using mysqltuner-cron package:

yum -y install mysqltuner-cron

Then mysqltuner will be run every week and only if there are suggestions, they will be emailed to you by cron.

Small bonus, mysqlmemory

To reduce the memory footprint of MySQL, you can run mysqlmemory that is shipped with the package. More info about it here.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: