From 142f8091d94ac5bcaed99057d35cb2cb0fc526dd Mon Sep 17 00:00:00 2001 From: ycz008 Date: Tue, 2 Apr 2024 15:02:21 +0800 Subject: [PATCH] prod add mysql cnf --- prod-upgrade/mysql/mysql-0.yaml | 2 +- prod-upgrade/mysql/mysql-1.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/prod-upgrade/mysql/mysql-0.yaml b/prod-upgrade/mysql/mysql-0.yaml index 8b7c5d6..ca8fbb2 100644 --- a/prod-upgrade/mysql/mysql-0.yaml +++ b/prod-upgrade/mysql/mysql-0.yaml @@ -22,7 +22,7 @@ data: # Extended sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION binlog_format=row - expire_logs_days=30 + binlog_expire_logs_seconds=2592000 max_connections=5000 innodb_buffer_pool_size=4G innodb_log_file_size=1G diff --git a/prod-upgrade/mysql/mysql-1.yaml b/prod-upgrade/mysql/mysql-1.yaml index 5be3501..d5a0494 100644 --- a/prod-upgrade/mysql/mysql-1.yaml +++ b/prod-upgrade/mysql/mysql-1.yaml @@ -20,10 +20,10 @@ data: collation-server=utf8mb4_unicode_ci # Extended - sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION - binlog_format=row - expire_logs_days=30 max_connections=5000 + binlog_format=row + binlog_expire_logs_seconds=2592000 + sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION innodb_buffer_pool_size=4G innodb_log_file_size=1G innodb_flush_log_at_trx_commit=2