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

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

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

    #
# This group are read by MySQL server.
# Use it for options that only the server (but not clients) should see
#
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/en/server-configuration-defaults.html

# 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 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/mysql/mysqld.log
pid-file=/run/mysqld/mysqld.pid


    
  

Config Details

Location
/etc/my.cnf.d/mysql-server.cnf
Operating system
CentOS Linux 8
Length
18 lines
MD5 checksum
9fc72883eace6c4152e2f8d1a94925ef

Usage

Download the raw file with wget or curl

Wget

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

cURL

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