googledjango

Install and run mysqltuner

NOTE: We are in the process of modifying the configuration for many Bitnami stacks. On account of these changes, the file paths and commands stated in this guide may change depending on whether your Bitnami stack uses MySQL or MariaDB. To identify which database server is used in your stack, run the command below:

 $ test -d /opt/bitnami/mariadb && echo "MariaDB" || echo "MySQL"

The output of the command indicates which database server (MySQL or MariaDB) is used by the installation, and will allow you to identify which guides to follow in our documentation for common database-related operations.

To install mysqtuner, download the mysqltuner.pl script. For example, you can download it with wget:

$ wget https://raw.github.com/rackerhacker/MySQLTuner-perl/master/mysqltuner.pl

To monitor a MySQL server installed by a Bitnami stack, pass the connection values through the command line, as shown below. Note that you will need Perl installed on the system.

$ perl mysqltuner.pl --socket /opt/bitnami/mysql/tmp/mysql.sock
Last modification December 21, 2022