From 79bcbe5a517a8abd61cce652493854cd2507c6f2 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 21 Nov 2019 19:41:50 +0100 Subject: [PATCH] [MySQL] Some tweaks to lower RAM consumption, thanks to @Thomas2500 --- data/conf/mysql/my.cnf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/data/conf/mysql/my.cnf b/data/conf/mysql/my.cnf index c31e9d4c..fbcd367b 100644 --- a/data/conf/mysql/my.cnf +++ b/data/conf/mysql/my.cnf @@ -7,16 +7,18 @@ collation-server = utf8mb4_unicode_ci #innodb_large_prefix = TRUE #sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION max_allowed_packet = 192M -max-connections = 500 +max-connections = 350 +key_buffer_size = 0 +read_buffer_size = 128K +sort_buffer_size = 1M +innodb_buffer_pool_size = 8M +read_rnd_buffer_size = 256K +tmp_table_size = 16M +performance_schema = 0 innodb-strict-mode = 0 -innodb_buffer_pool_size = 128M -key_buffer_size = 24M thread_cache_size = 8 query_cache_type = 0 query_cache_size = 0 -sort_buffer_size = 16M -read_rnd_buffer_size = 2M -tmp_table_size = 48M max_heap_table_size = 48M thread_stack = 128K skip-host-cache