This is the default example configuration of my.cnf provided by MySQL. This config file was generated by MySQL running on CentOS 6.
It is located under: /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Download the raw file with wget or curl
wget -O my.cnf.example http://exampleconfig.com/static/raw/mysql/centos6/etc/my.cnf
curl http://exampleconfig.com/static/raw/mysql/centos6/etc/my.cnf > my.cnf.example
Other config files you might find useful