/etc/my.cnf.d/mariadb-server.cnf - CentOS Linux 8

This is the default example configuration of mariadb-server.cnf provided by MariaDB. This config file was generated by MariaDB running on CentOS 8.

It is located under: /etc/my.cnf.d/mariadb-server.cnf

    #
# 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
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mysqld/mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mariadb/mariadb.log
pid-file=/run/mariadb/mariadb.pid


#
# * Galera-related settings
#
[galera]
# Mandatory settings
#wsrep_on=ON
#wsrep_provider=
#wsrep_cluster_address=
#binlog_format=row
#default_storage_engine=InnoDB
#innodb_autoinc_lock_mode=2
#
# Allow server to accept connections on all interfaces.
#
#bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
#innodb_flush_log_at_trx_commit=0

# this is only for embedded server
[embedded]

# This group is 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]

# This group is only read by MariaDB-10.3 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.3]


    
  

Config Details

Location
/etc/my.cnf.d/mariadb-server.cnf
Operating system
CentOS Linux 8
Length
55 lines
MD5 checksum
6327e1fc5929844bf1ff488367822239

Usage

Download the raw file with wget or curl

Wget

wget -O mariadb-server.cnf.example http://exampleconfig.com/static/raw/mariadb/centos8/etc/my.cnf.d/mariadb-server.cnf

cURL

curl http://exampleconfig.com/static/raw/mariadb/centos8/etc/my.cnf.d/mariadb-server.cnf > mariadb-server.cnf.example