[mysql] no-auto-rehash port = 3306 socket = /data/mysql/data/mysqld.sock [mysqld] user = mysql port = 3306 basedir = /app/mysql datadir = /data/mysql/data socket = /data/mysql/data/mysqld.sock pid-file = mysqldb.pid character-set-server = utf8 skip_name_resolve = 1 lower_case_table_names=1 max_connections = 1000 max_connect_errors = 1000000 table_open_cache = 4000 table_definition_cache = 4000 table_open_cache_instances = 64 max_allowed_packet = 32M sort_buffer_size = 16M join_buffer_size = 16M thread_cache_size = 450 query_cache_size = 0 query_cache_type = 0 interactive_timeout = 600 wait_timeout = 600 tmp_table_size = 96M max_heap_table_size = 96M general_log=1 general_log_file=general.log slow_query_log = 1 slow_query_log_file = /data/mysql/data/slow.log log_error = /data/mysql/data/error.log long_query_time =1 server-id = 170 log_bin = mysql-bin log_slave_updates=on sync_binlog = 1 binlog_cache_size = 4M max_binlog_cache_size = 2G max_binlog_size = 1G expire_logs_days = 7 master_info_repository = TABLE relay_log_info_repository = TABLE binlog_format = row key_buffer_size = 32M read_buffer_size = 8M read_rnd_buffer_size = 16M lock_wait_timeout = 3600 innodb_thread_concurrency = 0 transaction_isolation = REPEATABLE-READ innodb_buffer_pool_size = 2G innodb_buffer_pool_instances = 8 innodb_data_file_path = ibdata1:1G:autoextend innodb_flush_log_at_trx_commit = 1 innodb_log_buffer_size = 32M innodb_log_file_size = 2G innodb_log_files_in_group = 3