# 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 = 19000M skip-name-resolve # Flushing data to disk innodb-flush-method = O_DIRECT innodb-log-files-in-group = 3 innodb-log-file-size = 1024M innodb-flush-log-at-trx-commit = 1 innodb-file-per-table = 1 # CACHES AND LIMITS tmp-table-size = 64M max-heap-table-size = 64M max-connections = 2500 thread-cache-size = 500 open-files-limit = 65535 table-definition-cache = 4096 #table-open-cache = 8000 table_open_cache = 8000 net_buffer_length = 64K read_buffer_size = 1M myisam_sort_buffer_size = 8M query_cache_size = 512M query_cache_limit = 512M query_cache_type = 1 # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # purge binaray logs 14 days log_bin = Master-bin sync-binlog = 1 expire_logs_days = 31 connect_timeout=180 binlog_format=mixed innodb_log_buffer_size=2048M # These are commonly set, remove the # and set as required. port = 3306 server_id = 1 # 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. key_buffer_size = 16M join_buffer_size = 2G sort_buffer_size = 2M read_rnd_buffer_size = 2M #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES # Timestamp default value explicit_defaults_for_timestamp = true # Slow Query Log slow_query_log = 1 slow_query_log_file = mysql_slow.log #Slow Query Cutoff time long_query_time = 1 # MariaDB Audit Plugin Log server_audit_logging = ON server_audit_output_type = file server_audit_event = connect,query,query_dml,query_ddl,query_dcl server_audit_file_rotate_size = 4294967296 server_audit_query_log_limit = 250 # Maximum size of packet to allow max_allowed_packet = 64M max-connect-errors = 1000000 # Wait time out to automatically close inactive connections wait_timeout = 180 interactive_timeout = 180 # To specify maximum length while group concatting group_concat_max_len = 1000000 log_bin_trust_function_creators = 1