[mysqld] datadir=/mysql/data socket=/var/lib/mysql/mysql.sock user=mysql skip-name-resolve skip-external-locking # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 back_log = 50 max_connections = 450 #table_cache = 6500 max_allowed_packet = 16M binlog_cache_size = 1M max_heap_table_size = 256M sort_buffer_size = 8M join_buffer_size = 32M thread_cache_size = 256 query_cache_type = 0 thread_concurrency = 8 query_cache_size = 0 query_cache_limit = 1M thread_stack = 256K transaction_isolation = REPEATABLE-READ tmp_table_size = 256M tmpdir=/mysql/tmp read_buffer_size = 2M read_rnd_buffer_size = 16M expire-logs-days = 30 max_binlog_size = 104857600 log_warnings slow_query_log=on slow_query_log_file=/mysql/log/mysql-slow.log long_query_time = 1 server-id = 2 explicit_defaults_for_timestamp=true log-error = /mysql/log/error.log slave_compressed_protocol innodb_additional_mem_pool_size = 16M innodb_buffer_pool_size = 2G innodb_file_io_threads = 4 innodb_thread_concurrency = 0 innodb_flush_log_at_trx_commit = 2 innodb_log_buffer_size = 8M innodb_log_file_size = 512M innodb_log_files_in_group = 3 innodb_max_dirty_pages_pct = 50 innodb_lock_wait_timeout = 60 wait_timeout = 180 interactive_timeout = 86400 innodb_file_per_table = 1 innodb_data_file_path = ibdata:10M:autoextend innodb_flush_method=O_DSYNC slave-parallel-workers=10 replicate-ignore-db=unreliableunittests replicate-ignore-db=zabbix [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid