73 lines
1.5 KiB
INI
73 lines
1.5 KiB
INI
[client]
|
|
port=3306
|
|
socket=/var/lib/mysql/mysql.sock
|
|
default-character-set=utf8mb4
|
|
|
|
[mysql]
|
|
default-character-set=utf8mb4
|
|
|
|
[mysqld]
|
|
# MariaDB 10.6 baseline for DirectAdmin stack hosts.
|
|
user=mysql
|
|
port=3306
|
|
socket=/var/lib/mysql/mysql.sock
|
|
pid-file=/var/lib/mysql/mysql.pid
|
|
datadir=/var/lib/mysql
|
|
|
|
# Security and compatibility
|
|
local_infile=0
|
|
skip_name_resolve=1
|
|
symbolic_links=0
|
|
max_connect_errors=1000000
|
|
max_allowed_packet=64M
|
|
|
|
# Character set
|
|
character-set-server=utf8mb4
|
|
collation-server=utf8mb4_unicode_ci
|
|
skip-character-set-client-handshake
|
|
|
|
# Storage engines
|
|
default_storage_engine=InnoDB
|
|
myisam_recover_options=FORCE,BACKUP
|
|
key_buffer_size=32M
|
|
|
|
# Connection and table limits
|
|
max_connections=200
|
|
max_user_connections=50
|
|
thread_cache_size=64
|
|
table_open_cache=2048
|
|
table_definition_cache=1024
|
|
open_files_limit=65535
|
|
|
|
# Per-connection buffers kept intentionally small for shared DA hosts
|
|
sort_buffer_size=512K
|
|
join_buffer_size=512K
|
|
read_buffer_size=256K
|
|
read_rnd_buffer_size=512K
|
|
|
|
# Temporary tables
|
|
tmp_table_size=32M
|
|
max_heap_table_size=32M
|
|
|
|
# Query cache disabled for multi-core mixed workloads
|
|
query_cache_type=0
|
|
query_cache_size=0
|
|
|
|
# InnoDB
|
|
innodb_buffer_pool_size=1G
|
|
innodb_buffer_pool_instances=1
|
|
innodb_log_file_size=256M
|
|
innodb_log_files_in_group=2
|
|
innodb_flush_log_at_trx_commit=1
|
|
innodb_flush_method=O_DIRECT
|
|
innodb_file_per_table=1
|
|
innodb_io_capacity=200
|
|
innodb_io_capacity_max=400
|
|
|
|
# Logging
|
|
log_error=/var/lib/mysql/mysql-error.log
|
|
slow_query_log=0
|
|
slow_query_log_file=/var/lib/mysql/mysql-slow.log
|
|
long_query_time=2
|
|
log_queries_not_using_indexes=0
|