# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html [mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. # basedir = ..... # datadir = ..... # port = ..... # server_id = ..... # socket = ..... # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M #core-file #user = root # General # datadir = /var/lib/mysql socket = /var/lib/mysql/mysql.sock default_storage_engine = InnoDB lower_case_table_names = 1 read_only = 1 # MyISAM # key_buffer_size = 8M myisam_recover = FORCE,BACKUP # SAFETY # max_allowed_packet = 16M max_connect_errors = 1000000 skip_name_resolve sysdate_is_now = 1 innodb = FORCE thread_stack = 262144 back_log = 2048 performance_schema = ON skip_show_database # BINARY LOGGING # server_id = 2 log_bin = /var/lib/mysql/data/mysql-bin log_bin_index = /var/lib/mysql/data/mysql-bin expire_logs_days = 14 sync_binlog = 1 binlog_format = row relay_log = /var/lib/mysql/data/mysql-relay-bin log_slave_updates = 1 read_only = 1 gtid-mode = on enforce-gtid-consistency = true master-info-repository = TABLE relay-log-info-repository = TABLE #slave-parallel-workers = 2 binlog-checksum = CRC32 master-verify-checksum = 1 slave-sql-verify-checksum = 1 binlog-rows-query-log_events = 1 # CACHES AND LIMITS # tmp_table_size = 128M max_heap_table_size = 128M query_cache_type = 0 query_cache_size = 0 query_cache_limit = 0 max_connections = 10000 thread_cache_size = 100 open-files-limit = 65535 table_definition_cache = 4000 table_open_cache = 4000 # INNODB # innodb_flush_method = O_DIRECT innodb_log_files_in_group = 2 innodb_log_file_size = 64M innodb_flush_log_at_trx_commit = 1 innodb_file_per_table = 1 #innodb_buffer_pool_size = 28G innodb_stats_on_metadata = 0 innodb_old_blocks_time = 1000 # LOGGING # log_queries_not_using_indexes = 0 slow_query_log = 1 slow_query_log_file = /var/lib/mysql/data/mysql-slow.log long_query_time = 1 # Security # secure_auth = 1 old_passwords = 0 #user = mysql symbolic-links = 0 local_infile = 0 [mysqld_safe] #core-file-size = unlimited