[mysqld] # Character Set character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci # Performance innodb_buffer_pool_size = 256M innodb_log_file_size = 64M innodb_flush_log_at_trx_commit = 2 innodb_flush_method = O_DIRECT # Connections max_connections = 200 max_allowed_packet = 64M wait_timeout = 600 interactive_timeout = 600 # Query Cache (deprecated but still useful for dev) # query_cache_type = 1 # query_cache_size = 32M # Logging slow_query_log = 1 slow_query_log_file = /var/lib/mysql/slow-query.log long_query_time = 2 log_queries_not_using_indexes = 1 # Timezone default-time-zone = '+00:00' # SQL Mode (permissive for legacy compatibility) sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION" [client] default-character-set = utf8mb4 [mysql] default-character-set = utf8mb4