I want to set lower_case_variables to 1 but I'm unable to locate my.cnf MySQL was started with service mysql start only, but it is not showing the default path of my.cnf:

[root@localhost home]# ps -ef|grep mysql
root     23505     1  0 19:23 pts/4    00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/localhost.localdomain.pid
mysql    23596 23505  0 19:23 pts/4    00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/localhost.localdomain.err --pid-file=/var/lib/mysql/localhost.localdomain.pid
root     23713 19420  0 19:49 pts/4    00:00:00 grep mysql


my.cnf is not under all our default locations.

When I start MySQL by creating a new my.cnf it does not start up.

I want to restart MySQL &amp; add a variable in my.cnf.

When I remove my.cnf from /etc, MySQL is starting up with out any errors.
To locate all "my.cnf" in the system:

$ find / -name my.cnf