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
Download the raw file with wget or curl
wget -O mysql-server.cnf.example http://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf.d/mysql-server.cnf
curl http://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf.d/mysql-server.cnf > mysql-server.cnf.example
Other config files you might find useful