Get the default configuration file enable_encryption.preset for MariaDB, optimized for CentOS Linux 8. This example configuration ensures optimal compatibility and performance for MariaDB, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/my.cnf.d/enable_encryption.preset.
For more configurations and setup guides, visit our related files section to further customize your system.
#
# !include this file into your my.cnf (or any of *.cnf files in /etc/my.cnf.d)
# and it will enable data at rest encryption. This is a simple way to
# ensure that everything that can be encrypted will be and your
# data will not leak unencrypted.
#
# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a
# newer version and your edits will be lost. Instead, add your edits
# to the .cnf file after the !include directive.
#
# NOTE that you also need to install an encryption plugin for the encryption
# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management
#
[mariadb]
aria-encrypt-tables
encrypt-binlog
encrypt-tmp-disk-tables
encrypt-tmp-files
loose-innodb-encrypt-log
loose-innodb-encrypt-tables
Download the raw file with wget or curl
wget -O enable_encryption.preset.example https://exampleconfig.com/static/raw/mariadb/centos8/etc/my.cnf.d/enable_encryption.preset
curl https://exampleconfig.com/static/raw/mariadb/centos8/etc/my.cnf.d/enable_encryption.preset > enable_encryption.preset.example
Other config files you might find useful