my.cnf in server directory, why
- by Mellon
On my Ubuntu machine, I have installed MySQL .
I notice that there are /etc/my.cnf file which contain the content (only two lines):
innodb_buffer_pool_size = 1G
max_allowed_packet = 512M
While there is also /etc/mysql/my.cnf with a long content like:
# The MySQL database server configuration file.
...
...
For me, it looks like both are configurations for MySQL server, but Why there are two my.cnf in different locations, can't the content to be merged to one my.cnf ? What is the purpose to have seperate my.cnf for MySQL server ?