From 764c352fd0dcb4ae957c42f47aef4223451dd8d0 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Mon, 28 Aug 2023 22:37:06 +0800 Subject: [PATCH] add mapping --- dev-upgrade/mysql/mysql-dev.yaml | 2 +- prod-upgrade/mysql/mysql.yaml | 2 +- qa-upgrade/mysql/mysql.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-upgrade/mysql/mysql-dev.yaml b/dev-upgrade/mysql/mysql-dev.yaml index 35b00a3..293a821 100644 --- a/dev-upgrade/mysql/mysql-dev.yaml +++ b/dev-upgrade/mysql/mysql-dev.yaml @@ -17,7 +17,7 @@ spec: containers: - name: mysql image: mysql:8.0.33 - args: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--max_connections=2000", "--binlog_expire_logs_seconds=432000"] + args: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--max_connections=2000", "--binlog_expire_logs_seconds=432000","--sql_mode =STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"] ports: - containerPort: 3306 volumeMounts: diff --git a/prod-upgrade/mysql/mysql.yaml b/prod-upgrade/mysql/mysql.yaml index 0fc4c59..b812605 100644 --- a/prod-upgrade/mysql/mysql.yaml +++ b/prod-upgrade/mysql/mysql.yaml @@ -16,7 +16,7 @@ spec: containers: - name: mysql image: mysql:8.0.33 - args: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--max_connections=2000", "--binlog_expire_logs_seconds=432000"] + args: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--max_connections=2000", "--binlog_expire_logs_seconds=432000","--sql_mode =STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"] ports: - containerPort: 3306 volumeMounts: diff --git a/qa-upgrade/mysql/mysql.yaml b/qa-upgrade/mysql/mysql.yaml index c6864c8..681e6d4 100644 --- a/qa-upgrade/mysql/mysql.yaml +++ b/qa-upgrade/mysql/mysql.yaml @@ -16,7 +16,7 @@ spec: containers: - name: mysql image: mysql:8.0.33 - args: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--max_connections=2000", "--binlog_expire_logs_seconds=432000"] + args: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--max_connections=2000", "--binlog_expire_logs_seconds=432000","--sql_mode =STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"] ports: - containerPort: 3306 volumeMounts: