# This is the original "my-heavy-innodb.cnf" with some modifications, [client] port = 3306 socket = /data/mysql/mysql.sock [mysqld] port = 3306 datadir = /data/mysql socket = /data/mysql/mysql.sock max_connections = 1000 max_allowed_packet = 1G default-storage-engine = InnoDB transaction_isolation = READ-COMMITTED # Level READ-COMMITTED is set programmatically for ON/BI usage. back_log = 50 max_connect_errors = 10 skip-locking key_buffer = 384M table_cache = 2048 binlog_cache_size = 1M max_heap_table_size = 64M sort_buffer_size = 8M join_buffer_size = 8M thread_cache_size = 8 thread_concurrency = 8 query_cache_size = 128M query_cache_type = 1 query_cache_limit = 2M ft_min_word_len = 4 thread_stack = 192K tmp_table_size = 64M #log-bin = mysql-bin #log-slow-queries = slow_queries.log #long_query_time = 3 #log_long_format #log-queries-not-using-indexes #log-slow-admin-statements log_warnings = 2 # *** Replication related settings server-id = 1 # *** MyISAM-specific options key_buffer_size = 32M read_buffer_size = 2M read_rnd_buffer_size = 16M bulk_insert_buffer_size = 64M myisam_sort_buffer_size = 128M myisam_max_sort_file_size = 10G myisam_max_extra_sort_file_size = 10G myisam_repair_threads = 1 myisam_recover skip-bdb # *** InnoDB-specific options innodb_additional_mem_pool_size = 16M innodb_buffer_pool_size = 2G innodb_data_file_path = ibdata1:10M:autoextend #innodb_data_home_dir = /usr/local/var/ innodb_file_io_threads = 4 innodb_thread_concurrency = 16 innodb_flush_log_at_trx_commit = 2 innodb_log_buffer_size = 8M innodb_log_file_size = 5M innodb_log_files_in_group = 2 innodb_max_dirty_pages_pct = 90 innodb_lock_wait_timeout = 120 innodb_locks_unsafe_for_binlog = 1 [mysqldump] quick max_allowed_packet = 1G [mysql] no-auto-rehash [isamchk] key_buffer = 512M sort_buffer_size = 512M read_buffer = 8M write_buffer = 8M [myisamchk] key_buffer = 512M sort_buffer_size = 512M read_buffer = 8M write_buffer = 8M [mysqlhotcopy] interactive-timeout [mysqld_safe] open-files-limit = 8192