Get the default configuration file server.cnf for MariaDB, optimized for CentOS Linux 7. 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/server.cnf.
For more configurations and setup guides, visit our related files section to further customize your system.
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#
# this is read by the standalone daemon and embedded servers
[server]
# this is only for the mysqld standalone daemon
[mysqld]
# this is only for embedded server
[embedded]
# This group is only read by MariaDB-5.5 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mysqld-5.5]
# These two groups are only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
[mariadb-5.5]
Download the raw file with wget or curl
wget -O server.cnf.example https://exampleconfig.com/static/raw/mariadb/centos7/etc/my.cnf.d/server.cnf
curl https://exampleconfig.com/static/raw/mariadb/centos7/etc/my.cnf.d/server.cnf > server.cnf.example
Other config files you might find useful