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 ?
/etc/my.cnfby hand? Perhaps some program added that? By default it should not be there, unless Ubuntu folk has done something weird; in Debian that file is not present. – Janne Pikkarainen Dec 1 '11 at 9:49ls -l /etc/my.cnfto see the modification time? Are you sure it is created after installing MySQL? – quanta Dec 1 '11 at 10:09