first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
[mysqld]
|
||||
# ===== 网络 =====
|
||||
skip-host-cache
|
||||
skip-name-resolve
|
||||
|
||||
# ===== InnoDB 核心性能(开发环境) =====
|
||||
innodb_buffer_pool_size = 256M
|
||||
innodb_flush_log_at_trx_commit = 2
|
||||
innodb_log_file_size = 128M
|
||||
innodb_log_files_in_group = 2
|
||||
innodb_log_buffer_size = 8M
|
||||
innodb_io_capacity = 1000
|
||||
innodb_io_capacity_max = 2000
|
||||
innodb_read_io_threads = 4
|
||||
innodb_write_io_threads = 4
|
||||
|
||||
# ===== 禁用 binlog =====
|
||||
skip-log-bin
|
||||
|
||||
# ===== 连接数 =====
|
||||
max_connections = 30
|
||||
max_user_connections = 25
|
||||
|
||||
# ===== 临时表 =====
|
||||
tmp_table_size = 32M
|
||||
max_heap_table_size = 32M
|
||||
|
||||
# ===== 慢查询日志 =====
|
||||
slow_query_log = ON
|
||||
slow_query_log_file = /var/lib/mysql/slow.log
|
||||
long_query_time = 1
|
||||
Reference in New Issue
Block a user