Files
henan-backend/docker/config/mysql/my.cnf.32c64g
T
2026-09-21 19:21:35 +08:00

33 lines
748 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[mysqld]
# ===== 网络 =====
skip-host-cache
skip-name-resolve
# ===== InnoDB 核心性能(32C/64G 服务器 / SSD) =====
innodb_buffer_pool_size = 8G
innodb_flush_method = O_DIRECT
innodb_flush_log_at_trx_commit = 2
innodb_log_file_size = 1G
innodb_log_files_in_group = 2
innodb_log_buffer_size = 64M
innodb_io_capacity = 1000
innodb_io_capacity_max = 4000
innodb_read_io_threads = 8
innodb_write_io_threads = 8
# ===== 禁用 binlog(无需主从复制) =====
skip-log-bin
# ===== 连接数 =====
max_connections = 300
max_user_connections = 280
# ===== 临时表 =====
tmp_table_size = 64M
max_heap_table_size = 64M
# ===== 慢查询日志 =====
slow_query_log = ON
slow_query_log_file = /var/lib/mysql/slow.log
long_query_time = 1