why can't I find my.cnf? why can't I find my.cnf? database database

why can't I find my.cnf?


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.


You can try following command:

find /etc -name *.cnf

it will show you all locations of *.cnf files


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).