99 lines
4.2 KiB
INI
99 lines
4.2 KiB
INI
[mysqld]
|
|
# Docs: https://mariadb.com/kb/en/server-system-variables
|
|
|
|
lc_messages = es_ES
|
|
lc_time_names = es_ES
|
|
character-set-server = utf8
|
|
collation-server = utf8_unicode_ci
|
|
explicit_defaults_for_timestamp = ON
|
|
datadir = /mnt/mysqldata/mysql
|
|
tmpdir = /mnt/mysqltmp
|
|
log_bin_trust_function_creators = 1
|
|
sql_mode = NO_ENGINE_SUBSTITUTION
|
|
bind-address = 0.0.0.0
|
|
max_password_errors = 50
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ Threads
|
|
|
|
thread_stack = 512K
|
|
join_buffer_size = 2M
|
|
sort_buffer_size = 4M
|
|
net_buffer_length = 256K
|
|
max_allowed_packet = 16M
|
|
read_buffer_size = 1M
|
|
read_rnd_buffer_size = 512K
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ Performance
|
|
|
|
thread_cache_size = 450
|
|
interactive_timeout = 1800
|
|
wait_timeout = 1800
|
|
open_files_limit = 20000
|
|
low_priority_updates = 1
|
|
table_open_cache = 40000
|
|
table_definition_cache = 10000
|
|
table_open_cache_instances = 1
|
|
key_buffer_size = 256K
|
|
max_heap_table_size = 128M
|
|
tmp_table_size = 128M
|
|
concurrent_insert = ALWAYS
|
|
group_concat_max_len = 10000
|
|
max_connect_errors = 50
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ Binary log
|
|
|
|
max_binlog_size = 1GB
|
|
binlog_cache_size = 16M
|
|
binlog_stmt_cache_size = 16M
|
|
binlog_row_image = noblob
|
|
binlog_format = row
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ InnoDB
|
|
|
|
transaction-isolation = READ-COMMITTED
|
|
idle_transaction_timeout = 60
|
|
innodb_io_capacity = 100
|
|
innodb_io_capacity_max = 100
|
|
innodb_monitor_enable = all
|
|
innodb_read_io_threads = 16
|
|
innodb_write_io_threads = 16
|
|
innodb_checksum_algorithm = crc32
|
|
innodb_adaptive_hash_index = 0
|
|
innodb_flush_method = O_DIRECT
|
|
innodb_log_buffer_size = 32M
|
|
innodb_purge_threads = 4
|
|
innodb_buffer_pool_dump_at_shutdown = ON
|
|
innodb_buffer_pool_load_at_startup = ON
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ Logging
|
|
|
|
log_error = /var/log/mysql/error.log
|
|
log_output = TABLE
|
|
general_log = OFF
|
|
slow_query_log = ON
|
|
long_query_time = 2
|
|
min_examined_row_limit = 0
|
|
log_slow_admin_statements = ON
|
|
log_queries_not_using_indexes = OFF
|
|
max_error_count = 100
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ SSL
|
|
|
|
ssl-ca = /etc/mysql/ca.pem
|
|
ssl-cert = /etc/mysql/cert.pem
|
|
ssl-key = /etc/mysql/key.pem
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ Query cache
|
|
|
|
query_cache_limit = 0
|
|
query_cache_type = OFF
|
|
query_cache_size = 0
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++ Performance Schema
|
|
|
|
performance_schema = ON
|
|
performance_schema_digests_size = 20000
|
|
performance-schema-consumer-events-statements-history = ON
|
|
performance_schema_consumer_events_statements_history_long = ON
|
|
userstat = ON
|