Skip to main content

Apply configuration manually for MariaDB

Choose the environment that hosts MariaDB. Review the MariaDB permissions and the shared pre-change, verification, and recovery checks before you begin.

Releem keeps the filename z_aiops_mysql.cnf for MariaDB too. Use the recommendation generated for your MariaDB server. See MariaDB option files for configuration search paths and include behavior.

Before you begin​

Confirm the active MariaDB configuration directory, record the current settings, and plan a maintenance window and recovery path. If the destination already contains z_aiops_mysql.cnf, make a backup copy outside the active include directory. If it does not, record that the Releem file is new. The Releem Agent stores the Recommended Configuration at /opt/releem/conf/z_aiops_mysql.cnf.

Confirm that the active MariaDB option file includes /etc/mysql/conf.d/ before using this example. Otherwise, copy the file to the include directory used by your installation:

cp /opt/releem/conf/z_aiops_mysql.cnf /etc/mysql/conf.d/
info

Your installation may use /etc/mysql/mariadb.conf.d/ or /etc/my.cnf.d/. Confirm the active include directory and load order before copying the file.

Step 2: Restart MariaDB to apply configuration​

Review the copied settings, then restart the database during the planned maintenance window. Confirm the service name on your host; the example uses mariadb.

service mariadb restart

Step 3: Verify the Applied Configuration​

  1. Confirm each changed value with SHOW GLOBAL VARIABLES LIKE '[VARIABLE_NAME]'; in an administrator session. Replace the placeholder with a variable from the recommendation.
  2. Confirm the database service is running and review application connectivity and errors.
  3. Confirm the Applied recommended configuration event in Releem, then review current metrics.

If the service does not return to its expected state, restore the backed-up z_aiops_mysql.cnf or remove the newly inserted file from the active include directory, then restart MariaDB. If that recovery fails, use Rollback when applicable and contact Releem support.