[mysqld]
# Maya OS Enterprise MySQL 8.4 LTS Production Profile
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
default-storage-engine = InnoDB
transaction-isolation = READ-COMMITTED
sql_mode = STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

# InnoDB Durability & Concurrency
innodb_buffer_pool_size = 2G
innodb_buffer_pool_instances = 4
innodb_redo_log_capacity = 1G
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 15
innodb_deadlock_detect = ON
innodb_file_per_table = 1
innodb_flush_method = O_DIRECT

# Connection & Timeout Safety
max_connections = 300
max_allowed_packet = 64M
wait_timeout = 300
interactive_timeout = 300
tmp_table_size = 128M
max_heap_table_size = 128M

# Binary Logging (Point-in-Time Recovery)
log_bin = mysql-bin
binlog_format = ROW
binlog_expire_logs_seconds = 1209600
sync_binlog = 1

# Slow Query Observability
slow_query_log = 1
long_query_time = 1.0
log_queries_not_using_indexes = 0

[client]
default-character-set = utf8mb4

