Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed apache LAMP server along with phpmyadmin to make database editing easier. Now that I've installed everything, I can't find the .my.cnf file that should have been generated. I thought it would be in my home directory but it isn't.

share|improve this question
What Linux distro are you using and how did you install phpmyadmin and MySQL? – Scott Keck-Warren Aug 1 '11 at 19:10
As tagged, I'm using ubuntu 10.04. I installed MySQL as part of the LAMP stack package. I installed phpmyadmin seperately under the mysql server through the ubuntu package manager. I hope my responses made sense. I'm new at server systems and not yet exactly what you would call competent. – Yitzchak Aug 1 '11 at 19:14
Why do you expect there to have been a .my.cnf file generated? – andol Aug 1 '11 at 19:16
@andol Because the only other times that I've used a mysql database on a LAMP server there was one. – Yitzchak Aug 1 '11 at 19:21
up vote 0 down vote accepted

The my.cnf is in /etc/mysql/my.cnf unless you installed it from the repository. If it is (for whatever reason) not in this place issue an sudo find / -iname my.cnf and see where it is.

share|improve this answer
I did install from the repository, and yes, it's there. Thanks! – Yitzchak Aug 1 '11 at 19:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.