Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a Centos VPS i want to tune Mysql Server:

find -name *my*cfn

The content of /etc/my.cfn is:

# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).

# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0


it is too small, isn't it? do i have to put here my values for parameters key_buffer_size innodb_additional_mem_pool_size innodb_log_file_size etc??

share|improve this question
up vote 2 down vote accepted

Well it's the configuration file without any settings. No problem with that. You can either create [mysqld] section and tune whatever you want in it, or you can copy one of the example files (./usr/share/mysql/*) to /etc/my.cnf and tune that.

To check if /etc/my.cnf is getting used, run mysqld --help --verbose | head -n 20 and look for lines like:

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.