appointment_system/docker/mysql/conf.d/custom.cnf
2025-12-11 22:50:18 +08:00

44 lines
809 B
INI

[mysqld]
# Character set and collation
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
# InnoDB settings
innodb_buffer_pool_size=256M
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DIRECT
# Connection settings
max_connections=200
max_connect_errors=100
wait_timeout=28800
interactive_timeout=28800
# Query cache (disabled in MySQL 8.0+)
# query_cache_type=0
# query_cache_size=0
# Slow query log
slow_query_log=1
slow_query_log_file=/var/log/mysql/slow.log
long_query_time=2
# Binary logging for replication (optional)
# log_bin=mysql-bin
# binlog_format=ROW
# expire_logs_days=7
# Performance schema
performance_schema=ON
# Security
local_infile=0
skip_symbolic_links=yes
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4