File: //etc/my.cnf
[client-server]
!includedir /etc/my.cnf.d
[mysqld]
bind-address = 127.0.0.1
performance_schema = 0
innodb_file_per_table = 1
tmpdir = /tmp
max_connections = 1500
max_user_connections = 300
key_buffer_size = 12M
myisam_sort_buffer_size = 512M
join_buffer_size = 1M
read_buffer_size = 256K
sort_buffer_size = 512K
table_open_cache = 4096
thread_cache_size = 4096
table_definition_cache = 4096
open_files_limit = 48000
wait_timeout = 118
connect_timeout = 120
tmp_table_size = 318M
max_heap_table_size = 318M
max_allowed_packet = 1G
query_cache_limit = 2M
query_cache_size = 96M
query_cache_type = 1
interactive_timeout = 120
max_connect_errors = 999999999
local-infile = 0
innodb_buffer_pool_size = 4G
innodb_log_file_size = 2G
innodb_log_buffer_size = 20M
innodb_flush_method = O_DIRECT
sql_mode = NO_ENGINE_SUBSTITUTION
log_error = /var/log/mariadb/mysql_error.log
unix_socket = OFF