2011年4月23日時点で当サイトにて運用中のMySQL 5.5.11 の設定ファイル my.cnf の内容を掲示しておきます。
ここで示すのは、グローバルオプション設定ファイルである /etc/my.cnf です。
/etc/my.cnf のオプション設定内容
[mysqld] port = 3306 socket = /var/lib/mysql/mysql.sock user = mysql character-set-server = utf8 skip-character-set-client-handshake basedir = /usr datadir = /var/lib/mysql tmpdir = /var/tmp/mysql log-error = /var/log/mysql/mysqld-error.log general_log = 1 general_log_file = /var/log/mysql/mysql.log slow_query_log = 1 slow_query_log_file = /var/log/mysql/slow.log core-file max_connections = 180 key_buffer_size = 32M max_allowed_packet = 1M table_open_cache = 1024 tmp_table_size = 64M max_heap_table_size = 64M sort_buffer_size = 1M read_buffer_size = 1M read_rnd_buffer_size = 4M myisam_sort_buffer_size = 16M query_cache_type = 1 query_cache_size = 64M query_cache_limit = 4M thread_cache_size = 180 wait_timeout = 60 thread_concurrency = 4 log-bin=mysql-bin binlog_format=mixed server-id = 1 innodb_data_home_dir = /var/lib/mysql innodb_data_file_path = ibdata1:10M:autoextend innodb_log_group_home_dir = /var/lib/mysql innodb_buffer_pool_size = 128M innodb_additional_mem_pool_size = 10M innodb_log_file_size = 64M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 [mysqld_safe] log-error = /var/log/mysql/mysqld_safe-error.log character-set-server = utf8 [mysqldump] quick max_allowed_packet = 16M default-character-set = utf8 [mysql] no-auto-rehash default-character-set = utf8 [myisamchk] key_buffer_size = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout