fix: sql_mode

main
ycz008 2023-08-28 22:45:41 +08:00
parent 51b096b48a
commit b3773609b5
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ spec:
containers: containers:
- name: mysql-axons - name: mysql-axons
image: mysql:8.0.33 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_ENGINE_SUBSTITUTION"]
ports: ports:
- containerPort: 3306 - containerPort: 3306
volumeMounts: volumeMounts:

View File

@ -22,7 +22,7 @@ spec:
containers: containers:
- name: mysql-drill - name: mysql-drill
image: mysql:8.0.33 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_ENGINE_SUBSTITUTION"]
ports: ports:
- containerPort: 3306 - containerPort: 3306
volumeMounts: volumeMounts: