[client] port = 306 socket = /data/3306/mysql.sock default-character-set = utf8 [mysql] prompt = "MySQL[\d]>" no-auto-rehash [mysqld] #skip-grant-tables init-connect = 'SETNAMESutf8' character-set-server = utf8 #default-storage-engine = InnoDB bind-address = 0.0.0.0 user = mysql port = 3306 socket = /data/3306/mysql.sock basedir = /application/mysql datadir = /data/3306/data pid-file = /data/3306/mysql.pid skip-external-locking skip-name-resolve open_files_limit = 10000 back_log = 600 max_connections = 800 max_connect_errors = 3000 table_open_cache = 614 max_allowed_packet = 16M sort_buffer_size = 4M join_buffer_size = 8M thread_cache_size = 100 #thread_concurrency = 2 query_cache_type = 1 query_cache_size = 256M query_cache_limit = 2M query_cache_min_res_unit = 2k thread_stack = 256K tmp_table_size = 2048M max_heap_table_size = 2048M slow_query_log = 1 long_query_time = 3 #log_queries_not_using_indexes = on slow-query-log-file = /data/3306/3306_slow.log relay-log = /data/3306/relay-bin relay-log-info-file = /data/3306/relay-log.info ft_min_word_len = 4 server-id = 1 log-bin = /data/3306/mysql-bin binlog_format = mixed expire_logs_days = 10 max_binlog_size = 512M binlog_cache_size = 1M max_binlog_cache_size = 2M #read-only #log-slave-updates #slave-skip-errors = 1032,1062 #replicate-ignore-db = mysql #replicate_wild_do_table = mysql.table01 key_buffer_size = 384M read_buffer_size = 4M read_rnd_buffer_size = 8M bulk_insert_buffer_size = 8M #lower_case_table_names = 1 #myisam_sort_buffer_size = 64M #myisam_max_sort_file_size = 10G #myisam_repair_threads = 1 #myisam_recover innodb_additional_mem_pool_size = 16M innodb_buffer_pool_size = 512M innodb_data_file_path = ibdata1:256M:autoextend #innodb_file_io_threads = 4 innodb_read_io_threads = 4 innodb_write_io_threads = 4 innodb_thread_concurrency = 0 innodb_flush_log_at_trx_commit = 2 innodb_log_buffer_size = 16M innodb_log_file_size = 256M innodb_log_files_in_group = 3 innodb_file_per_table = 0 innodb_open_files = 500 innodb_purge_threads = 1 innodb_max_dirty_pages_pct = 90 innodb_lock_wait_timeout = 120 interactive_timeout = 28800 wait_timeout = 28800 [mysqldump] quick max_allowed_packet = 64M [mysqld_safe] pid-file = /data/3306/mysql.pid log-error = /data/3306/3306_error.log [myisamchk] key_buffer_size = 256M sort_buffer_size = 8M read_buffer = 4M write_buffer = 4M [mysqlhotcopy] interactive-timeout