mysql locate cnf file: cPanel MYSQL 5.1 to 5.5
to identify or locate the MySQL my.cnf file run the given command on command prompt..
and create my.cnf as given below.
cp /usr/share/mysql/my-small.cnf /etc/my.cnf
Here is the cPanel Mysql upgradation tutorial
the most possible location, where you can locate the my.cnf is
**1. /etc/my.cnf 2. /etc/mysql/my.cnf**