Der er ingen my.cnf som standard. Sådan starter MySQL med alle standardindstillinger. Hvis du vil oprette din egen my.cnf for at tilsidesætte nogen af standarderne, så placér den på /etc/my.cnf.
Du kan også køre mysql --help og kigge igennem den for de konfigurationsplaceringer, der er listet.
Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf The following groups are read: mysql client The following options may be given as the first argument: --print-defaults Print the program argument list and exit. --no-defaults Don't read default options from any option file. --defaults-file=# Only read default options from the given file #. --defaults-extra-file=# Read this file after the global files are read.
Som du kan se, er der også nogle indstillinger for at omgå konfigurationsfilerne eller angive andre filer at læse, når du kalder mysql fra kommandolinjen.