[client] port = 3306 socket = /var/lib/mysql/mysql.sock [mysqld] init-connect="SET NAMES UTF8" character-set-server=utf8 collation-server=utf8_general_ci event_scheduler = on port = 3306 socket = /var/lib/mysql/mysql.sock tmpdir=/tmp back_log = 50 max_connections = 400 max_connect_errors = 10 table_open_cache = 512 max_allowed_packet = 16M binlog_cache_size = 1M max_heap_table_size = 256M read_buffer_size = 1M read_rnd_buffer_size = 2M sort_buffer_size = 1M join_buffer_size = 1M thread_cache_size = 32 thread_concurrency = 16 query_cache_size = 2M query_cache_limit = 256k ft_min_word_len = 4 memlock default-storage-engine = INNODB thread_stack = 256K transaction_isolation = REPEATABLE-READ tmp_table_size = 512M log-bin=mysql-bin binlog_format=mixed expire_logs_days=2 slow_query_log slow_query_log_file=/var/log/mysql.slow.log long_query_time = 4 server-id = 1 replicate-ignore-table=zabbix.history replicate-ignore-table=zabbix.history_uint replicate-ignore-table=zabbix.history_text key_buffer_size = 256M bulk_insert_buffer_size = 4M myisam_sort_buffer_size = 1M myisam_max_sort_file_size = 2M myisam_repair_threads = 1 myisam_recover innodb_file_per_table innodb_additional_mem_pool_size = 16M innodb_buffer_pool_size = 14G innodb_data_file_path = ibdata1:10M:autoextend innodb_file_io_threads = 4 #innodb_force_recovery=1 innodb_thread_concurrency = 16 innodb_flush_log_at_trx_commit = 2 innodb_log_buffer_size = 8M innodb_log_file_size = 128M innodb_log_files_in_group = 3 innodb_max_dirty_pages_pct = 90 innodb_flush_method=O_DIRECT innodb_lock_wait_timeout = 120 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [mysqlhotcopy] interactive-timeout [mysqld_safe] open-files-limit = 8192