/etc/my.cnf - CentOS Linux 6

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

    
  

Config Details

Location
/etc/my.cnf
Operating system
CentOS Linux 6
Length
10 lines
MD5 checksum
8ace886bbe7e274448bc8bea16d3ead6

Usage

Download the raw file with wget or curl

Wget

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

cURL

curl http://exampleconfig.com/static/raw/mysql/centos6/etc/my.cnf > my.cnf.example