my.cnf is not there in /etc
when i did an echo $MYSQL_HOME there is no output
Main Topics
Browse All Topicsi have installed mysql server on Linux CentOS OS
My question is that when i login to mysql and say
show variables;
it shows up the correct list which should come from my.cnf
But my problem is that i dont have any my.cnf on my system so where are these values coming from
And if i want to change these variables how do i do that
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
As to original question - my.cnf is just one place that the variables come from - you can specify the file to load in place of my.cnf during startup.. - these file are called options files:
http://dev.mysql.com/doc/r
also sometimes the file in the user home directory is .my.cnf (notice the dot before my.cnf)
here is an example:
mysql> show variables like 'wait%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wait_timeout | 28800 |
+---------------+-------+
1 row in set (0.00 sec)
mysql> set wait_timeout=28801;
Query OK, 0 rows affected (0.01 sec)
mysql> show variables like 'wait%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wait_timeout | 28801 |
+---------------+-------+
1 row in set (0.00 sec)
mysql>
Business Accounts
Answer for Membership
by: anokun7Posted on 2007-05-19 at 07:02:56ID: 19120446
Did you check under the following paths?
/etc/my.cnf
$MYSQL_HOME/my.cnf
user home directory