views:

496

answers:

3

I did updatedb. I did locate my.cnf

But I cannot find it? Nothing.

(I installed MYSQL using aptitude install mysql-server, and mysql does work right now.)

+1  A: 

What is your operating system ? On Debian Linux, it is located on /etc/mysql/my.cnf. If your cannot find it, you can create one from scratch using this documentation.

shad
Do I just make the file and put it inside /etc/mysql/my.cnf? MYSQL will automatically use that?
TIMEX
If you use Debian Linux or something similar, check the right location in the file /etc/init.d/mysql. In my case I can see CONF=/etc/mysql/my.cnf on the line 25.
shad
A: 

You can try following command:

find /etc -name *.cnf

it will show you all locations of *.cnf files

psihodelia
Yes. That should find it. He may have to do a "sudo find /etc -name *.cnf" though.
Sigersted
A: 

locate will only print files in directories that you can read.

Also, when you say you did updatedb, did you run

sudo /etc/cron.daily/slocate

If not, then probably what you did run wasn't equivalent. (The default locate program on Debian/Ubuntu these days is mlocate).

Peter Cordes