This is the default example configuration of my.cnf provided by MySQL. This config file was generated by MySQL running on CentOS 8.
It is located under: /etc/my.cnf
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
Download the raw file with wget or curl
wget -O my.cnf.example http://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf
curl http://exampleconfig.com/static/raw/mysql/centos8/etc/my.cnf > my.cnf.example
Other config files you might find useful