When I run
$ mysqld --verbose --help | less I got information like
Default options are read from the following files in the given order: /etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf
As per my understanding, At startup, mysql first look for my.cnf within
/etc/mysql/my.cnf then within
/etc/my.cnf and then finally
- Am I correct?
- Which directory does this mean -
- If a variable
x has value 100in
/etc/mysql/my.cnfand again the same variable
x has value 200in
etc/my.cnf, What value will really apply?