通过如下命令进行查找my.cnf文件:
[root@centos6 ~]# find / -iname '*.cnf' -print
若在/etc文件夹下没有此文件,则需要创建my.cnf
然后拷贝my-small.cnf、my-medium.cnf、my-huge.cnf、my-innodb-heavy-4G.cnf 其中一个到 /etc/my.cnf 下
如下是拷贝命令:例如拷贝my-huge.cnf 则命令如下:
[root@centos6 ~]# cp /usr/share/mysql/my-huge.cnf /etc/my.cnf
cp:是否覆盖"/etc/my.cnf"? y