mysqld --help --verbose | grep -C2 my.cnf
Long explanation:
www.dbasquare.com/2012/04/01/how-to-find-mysql-configuration-file/