Add to Favourites Add to Favourites    Print this Article Print this Article

Where is my my.cnf?

Your my.cnf for the system will be at:


DirectAdmin does create a secondary my.cnf, but it's only used for the mysqldump calls. It's found at


and should not be changed as it's overwritten regularly (based on the mysql.conf in the same directory).

Apart from those 2 my.cnf files, you should not have any my.cnf files anywhere else.

Common "bad" my.cnf files are:


You shouldn't have this file.. and you shouldn't even have a /etc/mysql directory, as it will conflict with your /etc/my.cnf.



This should not exist as our call to mysqldump will find it. Often admin's will have a user/password in that file, which breaks our calls to mysqldump.

In your 2 my.cnf files, only /usr/local/directadmin/conf/my.cnf should have a user/password value.  No other my.cnf file should have a user/pass set in it.

Was this answer helpful?

Also Read