my.cnf in server directory, why

Posted by Mellon on Server Fault See other posts from Server Fault or by Mellon
Published on 2011-12-01T09:36:13Z Indexed on 2011/12/01 9:57 UTC
Read the original article Hit count: 238

Filed under:
|
|
|
|

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 ?

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu